MCPcopy
hub / github.com/autoNumeric/autoNumeric / wipe

Method wipe

src/AutoNumeric.js:3070–3073  ·  view source on GitHub ↗

* Remove the autoNumeric data and event listeners from the element, and reset its value to the empty string ''. * This also clears the value from sessionStorage (or cookie, depending on browser supports). * * @example anElement.wipe()

()

Source from the content-addressed store, hash-verified

3068 * @example anElement.wipe()
3069 */
3070 wipe() {
3071 this._setElementValue('', false); // Do not send the 'AutoNumeric.events.formatted' event when wiping an AutoNumeric object
3072 this.remove();
3073 }
3074
3075 /**
3076 * Remove the autoNumeric data and event listeners from the element, and delete the DOM element altogether

Callers 2

constructorMethod · 0.80

Calls 2

_setElementValueMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected