Destroy handler if we have one.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@2944 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -65,6 +65,9 @@ OpenLayers.Control.prototype = {
|
|||||||
*/
|
*/
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
// eliminate circular references
|
// eliminate circular references
|
||||||
|
if (this.handler) {
|
||||||
|
this.handler.destroy();
|
||||||
|
}
|
||||||
this.map = null;
|
this.map = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user