code: function() {
          var deactivated = false;
          if(OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {
              this.layer.removeFeatures(this.handles);
              this.rotate && this.layer.removeFeatures(this.rotationHandles);
              this.layer.removeFeatures([this.box]);
              this.dragControl.deactivate();
              deactivated = true;
          }
          return deactivated;
      }
docs: APIMethod: deactivate
  Deactivates the control.