code: function() {
          if (this.handler) {
              this.handler.deactivate();
              this.handler.destroy();
              this.handler = null;
          }
     
          if (this.handlerMode == 'hover') {
              // Handle this event on hover
              this.handler = new OpenLayers.Handler.Hover(
                  this,
                  {'pause': this.handleEvent, 'move': this.reset},
                  this.handlerOptions
              );
          } else if (this.handlerMode == 'click') {
              // Handle this event on click
              this.handler = new OpenLayers.Handler.Click(
                  this, {
                      'click': this.handleEvent
                  }, this.handlerOptions
              );
          } else if (this.handlerMode == 'move') {
              this.handler = new OpenLayers.Handler.Hover(
                  this,
                  // Handle this event while hovering OR moving
                  {'pause': this.handleEvent, 'move': this.handleEvent},
                  this.handlerOptions
              );
          }
          if (this.handler) {
              return true;
          } else {
              return false;
          }
      }
docs: Method: resetHandler
  Deactivates the old hanlder and creates a new
  <OpenLayers.Handler> based on the mode specified in
  this.handlerMode