MCPcopy
hub / github.com/autoNumeric/autoNumeric / _isInGlobalList

Method _isInGlobalList

src/AutoNumeric.js:3676–3682  ·  view source on GitHub ↗

* Check if the given DOM element is in the global AutoNumeric element list. * * @param {HTMLElement|HTMLInputElement} domElement * @returns {boolean} * @private

(domElement)

Source from the content-addressed store, hash-verified

3674 * @private
3675 */
3676 static _isInGlobalList(domElement) { //FIXME test this
3677 if (!this._doesGlobalListExists()) {
3678 return false;
3679 }
3680
3681 return window[this.autoNumericGlobalListName].has(domElement);
3682 }
3683
3684 /**
3685 * Create a `Map` that will store all the autoNumeric elements that are initialized from this current element.

Callers 3

testMethod · 0.95
_addToGlobalListMethod · 0.95

Calls 1

_doesGlobalListExistsMethod · 0.95

Tested by 1

testMethod · 0.76