diff --git a/lib/OpenLayers/Control/TransformFeature.js b/lib/OpenLayers/Control/TransformFeature.js index 2d8adf5977..e0fa7c3b5a 100644 --- a/lib/OpenLayers/Control/TransformFeature.js +++ b/lib/OpenLayers/Control/TransformFeature.js @@ -233,7 +233,7 @@ OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, { deactivated = true; } if (deactivated) { - this.unsetFeature(); + this.unsetFeature(); } return deactivated; }, @@ -317,14 +317,14 @@ OpenLayers.Control.TransformFeature = OpenLayers.Class(OpenLayers.Control, { * If the control is active, it will be deactivated first. */ unsetFeature: function() { - if (this.active) { - this.deactivate(); - } else { - this.feature = null; - this.rotation = 0; - this.scale = 1; - this.ratio = 1; - } + if (this.active) { + this.deactivate(); + } else { + this.feature = null; + this.rotation = 0; + this.scale = 1; + this.ratio = 1; + } }, /**