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

Method closestScene

src/core/a-node.js:80–87  ·  view source on GitHub ↗

* Returns the first scene by traversing up the tree starting from and * including receiver element.

()

Source from the content-addressed store, hash-verified

78 * including receiver element.
79 */
80 closestScene () {
81 var element = this;
82 while (element) {
83 if (element.isScene) { break; }
84 element = element.parentElement;
85 }
86 return element;
87 }
88
89 /**
90 * Returns first element matching a selector by traversing up the tree starting

Callers 2

doConnectedCallbackMethod · 0.95
doConnectedCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected