MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onChanging

Method onChanging

tools/xsbug/behaviors.js:139–145  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

137 return code.container;
138 }
139 onChanging(code) {
140 if (this.insertionOffset != code.selectionOffset) {
141 this.history.length = this.historyIndex;
142 this.history.push(new CodeState(code));
143 this.historyIndex++;
144 }
145 }
146 onChanged(code) {
147 this.insertionOffset = code.selectionOffset;
148 this.onEdited(code);

Callers 3

doClearMethod · 0.95
doPasteMethod · 0.95
onKeyDownMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected