patch for #625 - remove extraneous _observeAndCache() function which is only used once. it doesnt seem to conceptually abstract anything, so lets inline it

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2991 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-04-03 15:54:27 +00:00
parent 33cb7fd0d4
commit d0115ccf26

View File

@@ -114,18 +114,6 @@ OpenLayers.Event = {
name = 'keydown';
}
this._observeAndCache(element, name, observer, useCapture);
},
/**
* @param {DOMElement} element
* @param {String} name
* @param {function} observer
* @param {Boolean} useCapture
*
*/
_observeAndCache: function(element, name, observer, useCapture) {
//if observers cache has not yet been created, create it
if (!this.observers) {
this.observers = new Object();
@@ -135,6 +123,7 @@ OpenLayers.Event = {
if (!this.observers[element.id]) {
this.observers[element.id] = new Array();
}
//add a new observer to this element's list
this.observers[element.id].push({
'element': element,