From 2734030a829c1a6dd171592ab9df431b64937f53 Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 3 Apr 2007 01:31:45 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Events.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/OpenLayers/Events.js b/lib/OpenLayers/Events.js index c86e4f46a7..34574ee999 100644 --- a/lib/OpenLayers/Events.js +++ b/lib/OpenLayers/Events.js @@ -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 {String} name @@ -264,6 +253,17 @@ OpenLayers.Event = { 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 */ CLASS_NAME: "OpenLayers.Event" };