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

Method getAttribute

src/core/a-mixin.js:91–94  ·  view source on GitHub ↗

* If `attr` is a component, then grab pre-parsed value from the cache. * Else do a normal getAttribute.

(attr)

Source from the content-addressed store, hash-verified

89 * Else do a normal getAttribute.
90 */
91 getAttribute (attr) {
92 return this.componentCache[attr] ||
93 window.HTMLElement.prototype.getAttribute.call(this, attr);
94 }
95
96 /**
97 * Parse and cache every component defined on the mixin.

Callers 15

doConnectedCallbackMethod · 0.95
anchored.jsFile · 0.45
wasd-controls.jsFile · 0.45
geometry.jsFile · 0.45
layer.jsFile · 0.45
link.jsFile · 0.45
text.jsFile · 0.45
cursor.jsFile · 0.45
ar-hit-test.jsFile · 0.45
reflection.jsFile · 0.45

Calls

no outgoing calls

Tested by 2

materialTextureLoadedFunction · 0.36
onEyeLoadedFunction · 0.36