Handler.Box.destroy: destroy the dragHandler. r=bartvde (closes #2697)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10422 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2010-06-22 14:07:32 +00:00
parent fa1b7d2481
commit 5f6a2209ba

View File

@@ -60,6 +60,17 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
this, callbacks, {keyMask: this.keyMask});
},
/**
* Method: destroy
*/
destroy(): function() {
if (this.dragHandler) {
this.dragHandler.destroy();
this.dragHandler = null;
}
OpenLayers.Handler.prototype.destroy.apply(this, arguments);
},
/**
* Method: setMap
*/