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

Function componentInitialized

tests/core/component.test.js:346–350  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

344 }
345
346 function componentInitialized (evt) {
347 if (evt.detail.name !== 'material') { return; }
348 el.addEventListener('componentchanged', componentChanged);
349 el.setAttribute('material', 'color', 'red');
350 }
351
352 el.addEventListener('componentinitialized', componentInitialized);
353 el.setAttribute('material', 'color', 'red');

Callers

nothing calls this directly

Calls 1

setAttributeMethod · 0.45

Tested by

no test coverage detected