MCPcopy
hub / github.com/autoNumeric/autoNumeric / _getFromGlobalList

Method _getFromGlobalList

src/AutoNumeric.js:3661–3667  ·  view source on GitHub ↗

* Return the value associated to the key `domElement` passed as a parameter. * The value is the AutoNumeric object that manages the DOM element `domElement`. * * @param {HTMLElement|HTMLInputElement} domElement * @returns {null|AutoNumeric} * @private

(domElement)

Source from the content-addressed store, hash-verified

3659 * @private
3660 */
3661 static _getFromGlobalList(domElement) { //FIXME test this
3662 if (this._doesGlobalListExists()) {
3663 return window[this.autoNumericGlobalListName].get(domElement);
3664 }
3665
3666 return null;
3667 }
3668
3669 /**
3670 * Check if the given DOM element is in the global AutoNumeric element list.

Callers 2

_addToGlobalListMethod · 0.95
getAutoNumericElementMethod · 0.95

Calls 2

_doesGlobalListExistsMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected