MCPcopy
hub / github.com/autoNumeric/autoNumeric / isManagedByAutoNumeric

Method isManagedByAutoNumeric

src/AutoNumeric.js:4666–4668  ·  view source on GitHub ↗

* Return `true` if the given DOM element has an AutoNumeric object that manages it. * This function also accepts a selector string. * * @param {HTMLElement|string} domElementOrSelector Accepts either directly a DOM element to test, or a string selector (that will return one and only o

(domElementOrSelector)

Source from the content-addressed store, hash-verified

4664 * @returns {boolean}
4665 */
4666 static isManagedByAutoNumeric(domElementOrSelector) { //FIXME test this
4667 return this._isInGlobalList(AutoNumericHelper.domElement(domElementOrSelector));
4668 }
4669
4670 /**
4671 * Return the AutoNumeric object that manages the given DOM element.

Callers 8

getAutoNumericElementMethod · 0.95
setMethod · 0.95
_getMethod · 0.95
getLocalizedMethod · 0.95
_serializeMethod · 0.95
_onKeydownGlobalMethod · 0.80
_onKeyupGlobalMethod · 0.80

Calls 2

_isInGlobalListMethod · 0.95
domElementMethod · 0.80

Tested by

no test coverage detected