code: function() {
          var deactivated = false;
          // the return from the controls is unimportant in this case
          if(OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {
              this.moveLayerBack();
              this.map.events.un({
                  "removelayer": this.handleMapEvents,
                  "changelayer": this.handleMapEvents,
                  scope: this
              });
              this.layer.removeFeatures(this.vertices, {silent: true});
              this.layer.removeFeatures(this.virtualVertices, {silent: true});
              this.vertices = [];
              this.handlers.drag.deactivate();
              this.handlers.keyboard.deactivate();
              var feature = this.feature;
              if (feature && feature.geometry && feature.layer) {
                  this.unselectFeature(feature);
              }
              deactivated = true;
          }
          return deactivated;
      }
docs: APIMethod: deactivate
  Deactivate the control.
  
  Returns:
  {Boolean} Successfully deactivated the control.