code: function() {
          if (this.timerId != null) {
              window.clearTimeout(this.timerId);
              this.timerId = null;
          }
          if (this.rightclickTimerId != null) {
              window.clearTimeout(this.rightclickTimerId);
              this.rightclickTimerId = null;
          }
      }
docs: Method: clearTimer
  Clear the timer and set <timerId> to null.