Adding eventListeners property to layer, control, and map. Setting this property at construction registers the given listeners based on event type key. r=elemoine (closes #1404)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@6435 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -651,6 +651,9 @@ OpenLayers.Events = OpenLayers.Class({
|
||||
}
|
||||
evt.object = this.object;
|
||||
evt.element = this.element;
|
||||
if(!evt.type) {
|
||||
evt.type = type;
|
||||
}
|
||||
|
||||
// execute all callbacks registered for specified type
|
||||
// get a clone of the listeners array to
|
||||
|
||||
Reference in New Issue
Block a user