* 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
()
| 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. |
no outgoing calls
no test coverage detected