MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / test

Method test

src/AutoNumeric.js:3574–3576  ·  view source on GitHub ↗

* Test if the given DOM element, or the element selected by the given selector string is already managed by AutoNumeric (if it has been initialized on the current page). * * @param {HTMLElement|string} domElementOrSelector Accepts either directly a DOM element to test, or a string selector

(domElementOrSelector)

Source from the content-addressed store, hash-verified

3572 * @returns {boolean}
3573 */
3574 static test(domElementOrSelector) {
3575 return this._isInGlobalList(AutoNumericHelper.domElement(domElementOrSelector));
3576 }
3577
3578 /**
3579 * Create a WeakMap with the given name.

Callers 10

validateMethod · 0.80
unformatMethod · 0.80
_addGroupSeparatorsMethod · 0.80
_onKeypressMethod · 0.80
isDigitMethod · 0.80
browserMethod · 0.80
isZeroOrHasNoValueMethod · 0.80

Calls 2

_isInGlobalListMethod · 0.95
domElementMethod · 0.80

Tested by

no test coverage detected