| 532 | } |
| 533 | |
| 534 | function getRootTViewTemplate( |
| 535 | creationBindings: Binding[] | null, |
| 536 | updateBindings: Binding[] | null, |
| 537 | ): ComponentTemplate<unknown> | null { |
| 538 | if (!creationBindings && !updateBindings) { |
| 539 | return null; |
| 540 | } |
| 541 | |
| 542 | return (flags) => { |
| 543 | if (flags & RenderFlags.Create && creationBindings) { |
| 544 | for (const binding of creationBindings as BindingInternal[]) { |
| 545 | binding.create!(); |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | if (flags & RenderFlags.Update && updateBindings) { |
| 550 | for (const binding of updateBindings as BindingInternal[]) { |
| 551 | binding.update!(); |
| 552 | } |
| 553 | } |
| 554 | }; |
| 555 | } |
| 556 | |
| 557 | function isInputBinding(binding: Binding): boolean { |
| 558 | const kind = (binding as BindingInternal)[BINDING].kind; |