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

Method remove

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

* Remove child entity. * * @param {Element} el - Child entity.

(el)

Source from the content-addressed store, hash-verified

239 * @param {Element} el - Child entity.
240 */
241 remove (el) {
242 if (el) {
243 this.object3D.remove(el.object3D);
244 } else {
245 this.parentNode.removeChild(this);
246 }
247 }
248
249 /**
250 * @returns {Array<Element>} Direct children that are entities.

Callers 15

sound.jsFile · 0.80
disableGrabCursorFunction · 0.80
gltf-model.jsFile · 0.80
cursor.jsFile · 0.80
pool.jsFile · 0.80
stats.jsFile · 0.80
xr-mode-ui.jsFile · 0.80
applyStickyHoverFixFunction · 0.80
embedded.jsFile · 0.80
webxr.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected