MCPcopy
hub / github.com/autoNumeric/autoNumeric / _getChildANInputElement

Method _getChildANInputElement

src/AutoNumeric.js:3552–3565  ·  view source on GitHub ↗

* Return an array of autoNumeric elements, child of the element passed as a parameter. * * @param {HTMLElement} formNode * @returns {Array} * @private

(formNode)

Source from the content-addressed store, hash-verified

3550 * @private
3551 */
3552 static _getChildANInputElement(formNode) { //FIXME test this
3553 const inputList = formNode.getElementsByTagName('input');
3554
3555 // Loop this list and keep only the inputs that are managed by AutoNumeric
3556 const autoNumericInputs = [];
3557 const inputElements = Array.prototype.slice.call(inputList, 0);
3558 inputElements.forEach(input => {
3559 if (this.test(input)) {
3560 autoNumericInputs.push(input);
3561 }
3562 });
3563
3564 return autoNumericInputs;
3565 }
3566
3567 // Static methods
3568 /**

Callers 3

formUnformatMethod · 0.80
formUnformatLocalizedMethod · 0.80
formReformatMethod · 0.80

Calls 1

testMethod · 0.95

Tested by

no test coverage detected