MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / pushOperation

Function pushOperation

lib/web/CodeMirror/src/util/operation_group.js:5–14  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

3let operationGroup = null
4
5export function pushOperation(op) {
6 if (operationGroup) {
7 operationGroup.ops.push(op)
8 } else {
9 op.ownsGroup = operationGroup = {
10 ops: [op],
11 delayedCallbacks: []
12 }
13 }
14}
15
16function fireCallbacksForOps(group) {
17 // Calls delayed callbacks and cursorActivity handlers until no

Callers 1

startOperationFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected