code: function()  {
          if (this.element && this.element.parentNode == this.div) {
              this.div.removeChild(this.element);
              this.element = null;
          }
          if (this.map) {
              this.map.events.unregister('moveend', this, this.updateLink);
          }
  
          OpenLayers.Control.prototype.destroy.apply(this, arguments); 
      }
docs: APIMethod: destroy