MCPcopy
hub / github.com/autoNumeric/autoNumeric / _hasFormHandlerFunction

Method _hasFormHandlerFunction

src/AutoNumeric.js:1413–1415  ·  view source on GitHub ↗

* Return `true` if the given form element, or if none are passed, the current `this.parentForm` one has a form handler name. * * @param {HTMLFormElement|null} formElement * @returns {boolean} * @private

(formElement = null)

Source from the content-addressed store, hash-verified

1411 * @private
1412 */
1413 _hasFormHandlerFunction(formElement = null) {
1414 return 'anFormHandler' in this._getFormElement(formElement).dataset;
1415 }
1416
1417 /**
1418 * Return the given form element, or defaults to `this.parentForm` if no argument is passed.

Callers 2

_getFormHandlerKeyMethod · 0.95
formMethod · 0.95

Calls 1

_getFormElementMethod · 0.95

Tested by

no test coverage detected