removing box when deactivating the handler. p=jorix, r=me (closes #3198)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11729 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-03-27 17:00:38 +00:00
parent 52b227958e
commit f88f6cd6ed

View File

@@ -183,7 +183,11 @@ OpenLayers.Handler.Box = OpenLayers.Class(OpenLayers.Handler, {
*/ */
deactivate: function () { deactivate: function () {
if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) { if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {
this.dragHandler.deactivate(); if (this.dragHandler.deactivate()) {
if (this.zoomBox) {
this.removeBox();
}
}
return true; return true;
} else { } else {
return false; return false;