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

Method doPaste

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

Source from the content-addressed store, hash-verified

87 this.doClear(code);
88 }
89 doPaste(code) {
90 this.onChanging(code);
91 code.insert(shell.behavior.getClipboard())
92 this.onChanged(code);
93 this.onReveal(code);
94 }
95 doRedo(code) {
96 this.historyIndex++;
97 var state = this.history[this.historyIndex];

Callers

nothing calls this directly

Calls 4

onChangingMethod · 0.95
onChangedMethod · 0.95
onRevealMethod · 0.95
insertMethod · 0.80

Tested by

no test coverage detected