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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user