(n: GridStackNode)
| 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 { |
no test coverage detected