MCPcopy Create free account
hub / github.com/microsoft/SandDance / Recognizer

Function Recognizer

docs/app/js/sanddance-app.js:93514–93523  ·  view source on GitHub ↗

* Recognizer * Every recognizer needs to extend from this class. * @constructor * @param {Object} options

(options)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

assignFunction · 0.85
uniqueIdFunction · 0.70
ifUndefinedFunction · 0.70

Tested by

no test coverage detected