code: function(map) {
          OpenLayers.Control.prototype.setMap.apply(this, arguments);
          this.map.events.register("buttonclick", this, this.onButtonClick);
      }
docs: Method: setMap
  
  Properties:
  map - {<OpenLayers.Map>}