* DRY the code between the static `get*` functions * * @param {HTMLElement|string} domElementOrSelector * @param {string} getFunction The name of the non-static `get*` function as a string * @param {function|null} callback * @returns {*} * @private
(domElementOrSelector, getFunction, callback = null)
| 4758 | * @private |
| 4759 | */ |
| 4760 | static _get(domElementOrSelector, getFunction, callback = null) { |
| 4761 | const domElement = AutoNumericHelper.domElement(domElementOrSelector); |
| 4762 | |
| 4763 | if (!this.isManagedByAutoNumeric(domElement)) { |
| 4764 | AutoNumericHelper.throwError(`Impossible to find an AutoNumeric object for the given DOM element or selector.`); |
| 4765 | } |
| 4766 | |
| 4767 | return this.getAutoNumericElement(domElement)[getFunction](callback); |
| 4768 | } |
| 4769 | |
| 4770 | /** |
| 4771 | * Returns the unformatted value following the `outputFormat` setting, from the given DOM element or query selector. |
no test coverage detected