code: function() {
          if (OpenLayers.Control.prototype.deactivate.apply(this, arguments)) {
              this.map.events.unregister('mousemove', this, this.redraw);
              this.map.events.unregister('mouseout', this, this.reset);
              this.element.innerHTML = "";
              return true;
          } else {
              return false;
          }
      }
docs: APIMethod: deactivate