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

Method removeNodeFromLayoutCache

src/gridstack-engine.ts:1237–1247  ·  view source on GitHub ↗
(n: GridStackNode)

Source from the content-addressed store, hash-verified

1235 }
1236
1237 public removeNodeFromLayoutCache(n: GridStackNode) {
1238 if (!this._layouts) {
1239 return;
1240 }
1241 for (let i = 0; i < this._layouts.length; i++) {
1242 const index = this.findCacheLayout(n, i);
1243 if (index !== -1) {
1244 this._layouts[i].splice(index, 1);
1245 }
1246 }
1247 }
1248
1249 /** called to remove all internal values but the _id */
1250 public cleanupNode(node: GridStackNode): GridStackEngine {

Callers 1

_setupAcceptWidgetMethod · 0.80

Calls 1

findCacheLayoutMethod · 0.95

Tested by

no test coverage detected