src/js/hammer.js
function Recognizer(options) {
    this.options = assign({}, this.defaults, options || {});

    this.id = uniqueId();

    this.manager = null;

    // default is enable true
    this.options.enable = ifUndefined(this.options.enable, true);

    this.state = STATE_POSSIBLE;

    this.simultaneous = {};
    this.requireFail = [];
}
function Recognizer(options) {
    this.options = assign({}, this.defaults, options || {});

    this.id = uniqueId();

    this.manager = null;

    // default is enable true
    this.options.enable = ifUndefined(this.options.enable, true);

    this.state = STATE_POSSIBLE;

    this.simultaneous = {};
    this.requireFail = [];
}
function Recognizer ( options ) { this . options = assign ( { } , this . defaults , options || { } ) ; this . id = uniqueId ( ) ; this . manager = null ; // default is enable true this . options . enable = ifUndefined ( this . options . enable , true ) ; this . state = STATE_POSSIBLE ; this . simultaneous = { } ; this . requireFail = [ ] ; }
Recognizer
Every recognizer needs to extend from this class.
@constructor
@param {Object} options
Recognizer Every recognizer needs to extend from this class .