MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / _notify

Method _notify

src/gridstack-engine.ts:645–650  ·  view source on GitHub ↗

@internal call this to call onChange callback with dirty nodes so DOM can be updated

(removedNodes?: GridStackNode[])

Source from the content-addressed store, hash-verified

643
644 /** @internal call this to call onChange callback with dirty nodes so DOM can be updated */
645 protected _notify(removedNodes?: GridStackNode[]): GridStackEngine {
646 if (this.batchMode || !this.onChange) return this;
647 const dirtyNodes = (removedNodes || []).concat(this.getDirtyNodes());
648 this.onChange(dirtyNodes);
649 return this;
650 }
651
652 /**
653 * Clean all dirty and last tried information from nodes.

Callers 9

batchUpdateMethod · 0.95
restoreInitialMethod · 0.95
removeNodeMethod · 0.95
removeAllMethod · 0.95
moveNodeCheckMethod · 0.95
floatMethod · 0.80
addNodeMethod · 0.80
moveNodeMethod · 0.80

Calls 2

getDirtyNodesMethod · 0.95
onChangeMethod · 0.45

Tested by

no test coverage detected