(opts: { recursive?: boolean } = {})
| 419 | } |
| 420 | |
| 421 | __postAdd(opts: { recursive?: boolean } = {}) { |
| 422 | const { em } = this; |
| 423 | const um = em?.UndoManager; |
| 424 | const comps = this.components(); |
| 425 | |
| 426 | if (!um || this.__hasUm) { |
| 427 | return; |
| 428 | } |
| 429 | |
| 430 | if (um) { |
| 431 | um.add(comps); |
| 432 | um.add(this.getSelectors()); |
| 433 | this.__hasUm = true; |
| 434 | } |
| 435 | |
| 436 | opts.recursive && comps.map((c) => c.__postAdd(opts)); |
| 437 | } |
| 438 | |
| 439 | __postRemove() { |
| 440 | const { em } = this; |
no test coverage detected