MCPcopy
hub / github.com/autoNumeric/autoNumeric / _incrementParentFormCounter

Method _incrementParentFormCounter

src/AutoNumeric.js:1372–1374  ·  view source on GitHub ↗

* Increment the AutoNumeric form children count for the given form element, or if none are passed, the current `this.parentForm` one. * * @param {HTMLFormElement|null} formElement * @private

(formElement = null)

Source from the content-addressed store, hash-verified

1370 * @private
1371 */
1372 _incrementParentFormCounter(formElement = null) {
1373 this._getFormElement(formElement).dataset.anCount++;
1374 }
1375
1376 /**
1377 * Decrement the AutoNumeric form children count for the current `this.parentForm` form element.

Callers 2

_setupFormListenerMethod · 0.95
formMethod · 0.95

Calls 1

_getFormElementMethod · 0.95

Tested by

no test coverage detected