coding standards. if statement without brackets and multiple return
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2988 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -261,11 +261,12 @@ OpenLayers.Event = {
|
|||||||
* stopObservingElement on each.
|
* stopObservingElement on each.
|
||||||
*/
|
*/
|
||||||
unloadCache: function() {
|
unloadCache: function() {
|
||||||
if (!OpenLayers.Event.observers) return;
|
if (OpenLayers.Event.observers) {
|
||||||
for (var elementId in OpenLayers.Event.observers) {
|
for (var elementId in OpenLayers.Event.observers) {
|
||||||
OpenLayers.Event.stopObservingElement.apply(this, [elementId]);
|
OpenLayers.Event.stopObservingElement.apply(this, [elementId]);
|
||||||
|
}
|
||||||
|
OpenLayers.Event.observers = false;
|
||||||
}
|
}
|
||||||
OpenLayers.Event.observers = false;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @final @type String */
|
/** @final @type String */
|
||||||
|
|||||||
Reference in New Issue
Block a user