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

Method cleanNodes

src/gridstack-engine.ts:660–667  ·  view source on GitHub ↗

* Clean all dirty and last tried information from nodes. * This resets the dirty state tracking for all nodes. * * @returns the engine instance for chaining * * @internal

()

Source from the content-addressed store, hash-verified

658 * @internal
659 */
660 public cleanNodes(): GridStackEngine {
661 if (this.batchMode) return this;
662 this.nodes.forEach(n => {
663 delete n._dirty;
664 delete n._lastTried;
665 });
666 return this;
667 }
668
669 /**
670 * Save the initial position/size of all nodes to track real dirty state.

Callers 4

batchUpdateMethod · 0.95
moveNodeMethod · 0.80
_onStartMovingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected