* Recognizer * Every recognizer needs to extend from this class. * @constructor * @param {Object} options
(options)
| 93512 | * @constructor |
| 93513 | * @param {Object} options |
| 93514 | */ function Recognizer(options) { |
| 93515 | this.options = assign({}, this.defaults, options || {}); |
| 93516 | this.id = uniqueId(); |
| 93517 | this.manager = null; |
| 93518 | // default is enable true |
| 93519 | this.options.enable = ifUndefined(this.options.enable, true); |
| 93520 | this.state = STATE_POSSIBLE; |
| 93521 | this.simultaneous = {}; |
| 93522 | this.requireFail = []; |
| 93523 | } |
| 93524 | Recognizer.prototype = { |
| 93525 | /** |
| 93526 | * @virtual |
nothing calls this directly
no test coverage detected