code: function () {
          if (this.available && !this.geolocation) {
              // set lazily to avoid IE9 memory leak
              this.geolocation = navigator.geolocation;
          }
          if (!this.geolocation) {
              this.events.triggerEvent("locationuncapable");
              return false;
          }
          if (OpenLayers.Control.prototype.activate.apply(this, arguments)) {
              if (this.watch) {
                  this.watchId = this.geolocation.watchPosition(
                      OpenLayers.Function.bind(this.geolocate, this),
                      OpenLayers.Function.bind(this.failure, this),
                      this.geolocationOptions
                  );
              } else {
                  this.getCurrentLocation();
              }
              return true;
          }
          return false;
      }
docs: Method: activate
  Activates the control.
  
  Returns:
  {Boolean} The control was effectively activated.