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:
Tim Schaub
2008-03-05 00:07:46 +00:00
parent 0c03b8e631
commit 894c457fdd
7 changed files with 117 additions and 1 deletions

View File

@@ -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