code: function(evt) {
          if(this.passesTolerance(evt)) {
             if(this.rightclickTimerId != null) {
                  //Second click received before timeout this must be 
                  // a double click
                  this.clearTimer();
                  this.callback('dblrightclick', [evt]);
                  return !this.stopDouble;
              } else { 
                  //Set the rightclickTimerId, send evt only if double is 
                  // true else trigger single
                  var clickEvent = this['double'] ?
                      OpenLayers.Util.extend({}, evt) : 
                      this.callback('rightclick', [evt]);
  
                  var delayedRightCall = OpenLayers.Function.bind(
                      this.delayedRightCall, 
                      this, 
                      clickEvent
                  );
                  this.rightclickTimerId = window.setTimeout(
                      delayedRightCall, this.delay
                  );
              } 
          }
          return !this.stopSingle;
      }
docs: Method: rightclick
  Handle rightclick.  For a dblrightclick, we get two clicks so we need
  to always register for dblrightclick to properly handle single
  clicks.
  
  Returns:
  {Boolean} Continue propagating this event.