properly check if portal details are available

This commit is contained in:
Stefan Breunig 2013-02-13 02:49:13 +01:00
parent 847a3d5fc1
commit 4c07fb12ae

View File

@ -4,13 +4,14 @@
// methods that highlight the portal in the map view.
window.renderPortalDetails = function(guid) {
var d = window.portals[guid].options.details;
if(!d) {
if(!window.portals[guid]) {
unselectOldPortal();
urlPortal = guid;
return;
}
var d = window.portals[guid].options.details;
var update = selectPortal(guid);
// collect some random data thats not worth to put in an own method