[OpenLayers-Dev] Bug Report about Popups in map.js
li ethan
ethan919 at gmail.com
Thu Nov 15 01:18:58 EST 2007
Dear listers!
Did anyone notice there might be a bug at addPopup:
function(popup, exclusive) in Map.js.
this method first remove all the popups when the exclusive flag is
true,and I think there is a problem is this statements
for(var i=0; i < this.popups.length; i++) {
this.removePopup(this.popups[i]);
}
and the removePopup method use array.splice(i,1) to cut off the
array,there might have some elements in this array never get
removed,like the element in index 1 will not be removed because it be
shift to index 0 after first loop.Am I correct?
More information about the Dev
mailing list