@internal
()
| 1822 | |
| 1823 | /** @internal */ |
| 1824 | protected _triggerAddEvent(): GridStack { |
| 1825 | if (this.engine.batchMode) return this; |
| 1826 | if (this.engine.addedNodes?.length) { |
| 1827 | if (!this._ignoreLayoutsNodeChange) { |
| 1828 | this.engine.layoutsNodesChange(this.engine.addedNodes); |
| 1829 | } |
| 1830 | // prevent added nodes from also triggering 'change' event (which is called next) |
| 1831 | this.engine.addedNodes.forEach(n => { delete n._dirty; }); |
| 1832 | const addedNodes = [...this.engine.addedNodes]; |
| 1833 | this.engine.addedNodes = []; |
| 1834 | this._triggerEvent('added', addedNodes); |
| 1835 | } |
| 1836 | return this; |
| 1837 | } |
| 1838 | |
| 1839 | /** @internal */ |
| 1840 | public _triggerRemoveEvent(): GridStack { |
no test coverage detected