* Reflect component data in the DOM (as seen from the browser DOM Inspector). * * @param {boolean} recursive - Also flushToDOM on the children.
(recursive)
| 684 | * @param {boolean} recursive - Also flushToDOM on the children. |
| 685 | **/ |
| 686 | flushToDOM (recursive) { |
| 687 | var components = this.components; |
| 688 | var child; |
| 689 | var children = this.children; |
| 690 | var i; |
| 691 | var key; |
| 692 | |
| 693 | // Flush entity's components to DOM. |
| 694 | for (key in components) { |
| 695 | components[key].flushToDOM(); |
| 696 | } |
| 697 | |
| 698 | // Recurse. |
| 699 | if (!recursive) { return; } |
| 700 | for (i = 0; i < children.length; ++i) { |
| 701 | child = children[i]; |
| 702 | if (!child.flushToDOM) { continue; } |
| 703 | child.flushToDOM(recursive); |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | /** |
| 708 | * If `attr` is a component, returns ALL component data including applied mixins and |
no outgoing calls
no test coverage detected