* Return an array of autoNumeric elements, child of the element passed as a parameter. * * @param {HTMLElement} formNode * @returns {Array} * @private
(formNode)
| 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 | /** |
no test coverage detected