| 558 | } |
| 559 | |
| 560 | function getRootTViewTemplate( |
| 561 | creationBindings: Binding[] | null, |
| 562 | updateBindings: Binding[] | null, |
| 563 | ): ComponentTemplate<unknown> | null { |
| 564 | if (!creationBindings && !updateBindings) { |
| 565 | return null; |
| 566 | } |
| 567 | |
| 568 | return (flags) => { |
| 569 | if (flags & RenderFlags.Create && creationBindings) { |
| 570 | for (const binding of creationBindings as BindingInternal[]) { |
| 571 | binding.create!(); |
| 572 | } |
| 573 | } |
| 574 | |
| 575 | if (flags & RenderFlags.Update && updateBindings) { |
| 576 | for (const binding of updateBindings as BindingInternal[]) { |
| 577 | binding.update!(); |
| 578 | } |
| 579 | } |
| 580 | }; |
| 581 | } |
| 582 | |
| 583 | function isInputBinding(binding: Binding): boolean { |
| 584 | const kind = (binding as BindingInternal)[BINDING].kind; |