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:
euzuro
2007-11-15 14:54:18 +00:00
parent adf2381731
commit ad40db89af
2 changed files with 29 additions and 2 deletions

View File

@@ -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]);
}
}