examples/touch/hammer.js
function dispose() {
    var i, eh;

    // undo all changes made by stop_browser_behavior
    if(this.options.stop_browser_behavior) {
      Utils.toggleDefaultBehavior(this.element, this.options.stop_browser_behavior, true);
    }

    // unbind all custom event handlers
    for(i=-1; (eh=this.eventHandlers[++i]);) {
      this.element.removeEventListener(eh.gesture, eh.handler, false);
    }
    this.eventHandlers = [];

    // unbind the start event listener
    Event.unbindDom(this.element, Hammer.EVENT_TYPES[EVENT_START], this.eventStartHandler);

    return null;
  }
function dispose() {
    var i, eh;

    // undo all changes made by stop_browser_behavior
    if(this.options.stop_browser_behavior) {
      Utils.toggleDefaultBehavior(this.element, this.options.stop_browser_behavior, true);
    }

    // unbind all custom event handlers
    for(i=-1; (eh=this.eventHandlers[++i]);) {
      this.element.removeEventListener(eh.gesture, eh.handler, false);
    }
    this.eventHandlers = [];

    // unbind the start event listener
    Event.unbindDom(this.element, Hammer.EVENT_TYPES[EVENT_START], this.eventStartHandler);

    return null;
  }
function dispose ( ) { var i , eh ; // undo all changes made by stop_browser_behavior if ( this . options . stop_browser_behavior ) { Utils . toggleDefaultBehavior ( this . element , this . options . stop_browser_behavior , true ) ; } // unbind all custom event handlers for ( i = - 1 ; ( eh = this . eventHandlers [ ++ i ] ) ; ) { this . element . removeEventListener ( eh . gesture , eh . handler , false ) ; } this . eventHandlers = [ ] ; // unbind the start event listener Event . unbindDom ( this . element , Hammer . EVENT_TYPES [ EVENT_START ] , this . eventStartHandler ) ; return null ; }
dispose this hammer instance
@returns {Hammer.Instance}
dispose this hammer instance