MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / _initializeFormCounterToOne

Method _initializeFormCounterToOne

src/AutoNumeric.js:1362–1364  ·  view source on GitHub ↗

* Set the count of AutoNumeric form children to 1 for the given form element, or if none are passed, the current `this.parentForm` one. * * @param {HTMLFormElement|null} [formElement=null] * @private

(formElement = null)

Source from the content-addressed store, hash-verified

1360 * @private
1361 */
1362 _initializeFormCounterToOne(formElement = null) {
1363 this._getFormElement(formElement).dataset.anCount = 1;
1364 }
1365
1366 /**
1367 * Increment the AutoNumeric form children count for the given form element, or if none are passed, the current `this.parentForm` one.

Callers 2

_setupFormListenerMethod · 0.95
formMethod · 0.95

Calls 1

_getFormElementMethod · 0.95

Tested by

no test coverage detected