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

Method _removeFormDataSetInfo

src/AutoNumeric.js:1492–1500  ·  view source on GitHub ↗

* Remove the dataset attributes `data-an-count` and `data-an-form-handler` from the parent form element. * * @private

()

Source from the content-addressed store, hash-verified

1490 * @private
1491 */
1492 _removeFormDataSetInfo() {
1493 // Just in case, set the counter to 0
1494 this._decrementParentFormCounter();
1495 // Remove the form handler function from the FormHandlerFunction Map
1496 window.aNFormHandlerMap.delete(this._getFormHandlerKey());
1497 // Lastly, remove the dataset attributes
1498 this.parentForm.removeAttribute('data-an-count');
1499 this.parentForm.removeAttribute('data-an-form-handler');
1500 }
1501
1502 /**
1503 * Set the DOM element write permissions according to the current settings, by setting the `readonly` or `contenteditable` attributes depending on its tag type.

Callers 1

_removeFormListenerMethod · 0.95

Calls 2

_getFormHandlerKeyMethod · 0.95

Tested by

no test coverage detected