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

Method attributeChangedCallback

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

* Handle mixin.

(attr, oldVal, newVal)

Source from the content-addressed store, hash-verified

65 * Handle mixin.
66 */
67 attributeChangedCallback (attr, oldVal, newVal) {
68 // Ignore if `<a-node>` code is just updating computed mixin in the DOM.
69 if (newVal === this.computedMixinStr) { return; }
70
71 if (attr === 'mixin' && !this.isMixin) {
72 this.updateMixins(newVal, oldVal);
73 }
74 }
75
76 /**
77 * Returns the first scene by traversing up the tree starting from and

Callers 1

setupMutationObserverMethod · 0.45

Calls 1

updateMixinsMethod · 0.95

Tested by

no test coverage detected