MCPcopy Index your code
hub / github.com/aframevr/aframe / load

Method load

src/core/a-entity.js:222–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 load () {
223 var self = this;
224
225 if (this.hasLoaded || !this.parentEl) { return; }
226
227 super.load.call(this, function entityLoadCallback () {
228 // Check if entity was detached while it was waiting to load.
229 if (!self.parentEl) { return; }
230
231 self.updateComponents();
232 if (self.isScene || self.parentEl.isPlaying) { self.play(); }
233 });
234 }
235
236 /**
237 * Remove child entity.

Callers 1

doConnectedCallbackMethod · 0.95

Calls 2

updateComponentsMethod · 0.80
playMethod · 0.45

Tested by

no test coverage detected