code: function(event) {
      return (this._armed !== null &&
          event.type === 'mouseup' &&
          event.isTrusted &&
          event.button === 0 &&
          event.timeStamp - this._armed.t < 1000 &&
          Math.abs(event.clientX - this._armed.x) < 10 &&
          Math.abs(event.clientY - this._armed.Y) < 10);
    }
docs: Determine whether a click occurred XXX We don't support double clicks for now