put destroy after init

git-svn-id: http://svn.openlayers.org/trunk/openlayers@937 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-12 00:34:47 +00:00
parent ec33ac4a84
commit 488b41a50b

View File

@@ -24,6 +24,14 @@ OpenLayers.Control.prototype = {
Object.extend(this, options);
},
/**
*
*/
destroy: function () {
// eliminate circular references
this.map = null;
},
/** Set the map property for the control. This is done through an accessor
* so that subclasses can override this and take special action once
* they have their map variable set.
@@ -61,13 +69,6 @@ OpenLayers.Control.prototype = {
}
},
/**
*/
destroy: function () {
// eliminate circular references
this.map = null;
},
/** @final @type String */
CLASS_NAME: "OpenLayers.Control"
};