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:
@@ -60,6 +60,17 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
this, callbacks, {keyMask: this.keyMask});
|
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
|
* Method: setMap
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user