Fix for addPopup()'s 'exclusive' option -- reworking of the for loop to make sure all popups are removed without error. Great find on this by li ethan and excellent work turning it into a patch by fredj. Once again, open source prevails. Thanks everyone. All tests pass FF/IE6. (Closes #1149)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5187 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -836,7 +836,7 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
|
||||
if (exclusive) {
|
||||
//remove all other popups from screen
|
||||
for(var i=0; i < this.popups.length; i++) {
|
||||
for (var i = this.popups.length - 1; i >= 0; --i) {
|
||||
this.removePopup(this.popups[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user