packages/js-toolkit/services/pointer.js
/**
   * Unbind all handlers from their bounded event.
   *
   * @return {Pointer}
   */
Unbind all handlers from their bounded event.
@return {Pointer}
Unbind all handlers from their bounded event . @return { Pointer }
kill() {
    document.removeEventListener('mousemove', this.handler);
    document.removeEventListener('touchmove', this.handler);
    document.removeEventListener('mousedown', this.downHandler);
    document.removeEventListener('touchstart', this.downHandler);
    document.removeEventListener('mouseup', this.upHandler);
    document.removeEventListener('touchend', this.upHandler);
    return this;
  }
kill ( ) { document . removeEventListener ( 'mousemove' , this . handler ) ; document . removeEventListener ( 'touchmove' , this . handler ) ; document . removeEventListener ( 'mousedown' , this . downHandler ) ; document . removeEventListener ( 'touchstart' , this . downHandler ) ; document . removeEventListener ( 'mouseup' , this . upHandler ) ; document . removeEventListener ( 'touchend' , this . upHandler ) ; return this ; }
Unbind all handlers from their bounded event.
Unbind all handlers from their bounded event .