src/js/hammer.js
function Input(manager, callback) {
    var self = this;
    this.manager = manager;
    this.callback = callback;
    this.element = manager.element;
    this.target = manager.options.inputTarget;

    // smaller wrapper around the handler, for the scope and the enabled state of the manager,
    // so when disabled the input events are completely bypassed.
    this.domHandler = function(ev) {
        if (boolOrFn(manager.options.enable, [manager])) {
            self.handler(ev);
        }
    };

    this.init();

}
function Input(manager, callback) {
    var self = this;
    this.manager = manager;
    this.callback = callback;
    this.element = manager.element;
    this.target = manager.options.inputTarget;

    // smaller wrapper around the handler, for the scope and the enabled state of the manager,
    // so when disabled the input events are completely bypassed.
    this.domHandler = function(ev) {
        if (boolOrFn(manager.options.enable, [manager])) {
            self.handler(ev);
        }
    };

    this.init();

}
function Input ( manager , callback ) { var self = this ; this . manager = manager ; this . callback = callback ; this . element = manager . element ; this . target = manager . options . inputTarget ; // smaller wrapper around the handler, for the scope and the enabled state of the manager, // so when disabled the input events are completely bypassed. this . domHandler = function ( ev ) { if ( boolOrFn ( manager . options . enable , [ manager ] ) ) { self . handler ( ev ) ; } } ; this . init ( ) ; }
create new input type manager
@param {Manager} manager
@param {Function} callback
@returns {Input}
@constructor
create new input type manager