MCPcopy
hub / github.com/aframevr/aframe / flushToDOM

Method flushToDOM

src/core/a-entity.js:686–705  ·  view source on GitHub ↗

* Reflect component data in the DOM (as seen from the browser DOM Inspector). * * @param {boolean} recursive - Also flushToDOM on the children.

(recursive)

Source from the content-addressed store, hash-verified

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

Callers 3

setAttributeMethod · 0.80
a-entity.test.jsFile · 0.80
component.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected