Adding events to map while dragging in the zoombar, then removing them afterwards. This neccessitated adding a 'remove' to Events, to pop events off the end. No more problems with dragging off into the map accidentally.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@388 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-26 02:17:43 +00:00
parent ae5ff749da
commit 1f89f13fb5
2 changed files with 14 additions and 0 deletions

View File

@@ -59,6 +59,10 @@ OpenLayers.Events.prototype = {
var listeners = this.listeners[type];
listeners.push( func.bindAsEventListener(obj) );
},
remove: function(type) {
this.listeners[type].pop();
},
/**
* @param {event} evt