MCPcopy
hub / github.com/autoNumeric/autoNumeric / _updateInternalProperties

Method _updateInternalProperties

src/AutoNumeric.js:8657–8660  ·  view source on GitHub ↗

* Update the selection values as well as resets the internal state of the current AutoNumeric object. * This keeps tracks of the current selection and resets the 'processed' state. * * Note : This state can change between the keydown, keypress and keyup events, that's why *

()

Source from the content-addressed store, hash-verified

8655 * @private
8656 */
8657 _updateInternalProperties() {
8658 this.selection = AutoNumericHelper.getElementSelection(this.domElement);
8659 this.processed = false;
8660 }
8661
8662 /**
8663 * Update the `event.key` attribute that triggered the given event.

Callers 3

_onKeydownMethod · 0.95
_onKeypressMethod · 0.95
_onKeyupMethod · 0.95

Calls 1

getElementSelectionMethod · 0.80

Tested by

no test coverage detected