Ticket #625: observe.patch
| File observe.patch, 1.0 kB (added by euzuro, 2 years ago) |
|---|
-
lib/OpenLayers/Events.js
old new 136 136 name = 'keydown'; 137 137 } 138 138 139 this._observeAndCache(element, name, observer, useCapture);140 },141 142 /**143 * @param {DOMElement} element144 * @param {String} name145 * @param {function} observer146 * @param {Boolean} useCapture147 *148 */149 _observeAndCache: function(element, name, observer, useCapture) {150 151 139 //if observers cache has not yet been created, create it 152 140 if (!this.observers) { 153 141 this.observers = new Object(); … … 157 145 if (!this.observers[element.id]) { 158 146 this.observers[element.id] = new Array(); 159 147 } 148 160 149 //add a new observer to this element's list 161 150 this.observers[element.id].push({ 162 151 'element': element,
