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

Method addState

src/core/a-entity.js:745–749  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

743 }
744
745 addState (state) {
746 if (this.is(state)) { return; }
747 this.states.push(state);
748 this.emit('stateadded', state);
749 }
750
751 removeState (state) {
752 var stateIndex = this.states.indexOf(state);

Callers 11

cursor.jsFile · 0.80
enterVRSuccessMethod · 0.80
cursor.test.jsFile · 0.80
a-entity.test.jsFile · 0.80
controls.test.jsFile · 0.80
a-scene.test.jsFile · 0.80
handleHitFunction · 0.80
grab.jsFile · 0.80
event-manager.jsFile · 0.80
button.jsFile · 0.80
highlight.jsFile · 0.80

Calls 2

isMethod · 0.95
emitMethod · 0.80

Tested by

no test coverage detected