Code restructure - 3

This commit is contained in:
Xelio 2013-02-16 01:28:19 +08:00
parent 65b0e0113b
commit d632fdd2d3

View File

@ -281,9 +281,8 @@ window.renderPortal = function(ent) {
window.portals[this.options.guid] = this; window.portals[this.options.guid] = this;
// handles the case where a selected portal gets removed from the // handles the case where a selected portal gets removed from the
// map by hiding all portals with said level // map by hiding all portals with said level
if(window.selectedPortal != this.options.guid) { if(window.selectedPortal != this.options.guid)
window.portalResetColor(this); window.portalResetColor(this);
}
}); });
p.on('click', function() { window.renderPortalDetails(ent[0]); }); p.on('click', function() { window.renderPortalDetails(ent[0]); });