remove array with portal details references that might have been leaking. Instead, store the details with the rendered portals so removal is handled automatically

This commit is contained in:
Stefan Breunig
2013-02-04 16:15:25 +01:00
parent f268f0cffc
commit 71bfeff678
4 changed files with 22 additions and 13 deletions

View File

@ -4,7 +4,7 @@
// methods that highlight the portal in the map view.
window.renderPortalDetails = function(guid) {
var d = portalsDetail[guid];
var d = window.portals[guid].options.details;
if(!d) {
unselectOldPortal();
urlPortal = guid;