move unloadCache() down so that stopObserving and stopObservingElement() are next to eachother
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2986 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+11
-11
@@ -196,17 +196,6 @@ OpenLayers.Event = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/** Cycle through all the element entries in the events cache and call
|
|
||||||
* stopObservingElement on each.
|
|
||||||
*/
|
|
||||||
unloadCache: function() {
|
|
||||||
if (!OpenLayers.Event.observers) return;
|
|
||||||
for (var elementId in OpenLayers.Event.observers) {
|
|
||||||
OpenLayers.Event.stopObservingElement.apply(this, [elementId]);
|
|
||||||
}
|
|
||||||
OpenLayers.Event.observers = false;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {DOMElement || String} elementParam
|
* @param {DOMElement || String} elementParam
|
||||||
* @param {String} name
|
* @param {String} name
|
||||||
@@ -264,6 +253,17 @@ OpenLayers.Event = {
|
|||||||
return foundEntry;
|
return foundEntry;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/** Cycle through all the element entries in the events cache and call
|
||||||
|
* stopObservingElement on each.
|
||||||
|
*/
|
||||||
|
unloadCache: function() {
|
||||||
|
if (!OpenLayers.Event.observers) return;
|
||||||
|
for (var elementId in OpenLayers.Event.observers) {
|
||||||
|
OpenLayers.Event.stopObservingElement.apply(this, [elementId]);
|
||||||
|
}
|
||||||
|
OpenLayers.Event.observers = false;
|
||||||
|
},
|
||||||
|
|
||||||
/** @final @type String */
|
/** @final @type String */
|
||||||
CLASS_NAME: "OpenLayers.Event"
|
CLASS_NAME: "OpenLayers.Event"
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user