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

Method removeState

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

Source from the content-addressed store, hash-verified

749 }
750
751 removeState (state) {
752 var stateIndex = this.states.indexOf(state);
753 if (stateIndex === -1) { return; }
754 this.states.splice(stateIndex, 1);
755 this.emit('stateremoved', state);
756 }
757
758 /**
759 * Checks if the element is in a given state. e.g. el.is('alive');

Callers 9

cursor.jsFile · 0.80
exitVRSuccessMethod · 0.80
a-entity.test.jsFile · 0.80
a-scene.test.jsFile · 0.80
aabb-collider.jsFile · 0.80
grab.jsFile · 0.80
event-manager.jsFile · 0.80
button.jsFile · 0.80
highlight.jsFile · 0.80

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected