avoid rendering portal details for hidden portals. They do not get updated and thus outdated info might be shown.

This commit is contained in:
Stefan Breunig
2013-02-10 21:13:17 +01:00
parent 8c7e63a7f8
commit 0bd102e823

View File

@ -251,6 +251,11 @@ window.renderPortal = function(ent) {
removeByGuid(portalResonatorGuid(portalGuid,i));
}
delete window.portals[portalGuid];
if(window.selectedPortal === portalGuid) {
window.unselectOldPortal();
window.map.removeLayer(window.portalAccessIndicator);
window.portalAccessIndicator = null;
}
});
p.on('add', function() {
window.portals[this.options.guid] = this;