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

Method is

src/core/a-entity.js:763–765  ·  view source on GitHub ↗

* Checks if the element is in a given state. e.g. el.is('alive'); * * @param {string} state - Name of the state we want to check

(state)

Source from the content-addressed store, hash-verified

761 * @param {string} state - Name of the state we want to check
762 */
763 is (state) {
764 return this.states.indexOf(state) !== -1;
765 }
766
767 /**
768 * Open Inspector to this entity.

Callers 15

addStateMethod · 0.95
anchored.jsFile · 0.80
layer.jsFile · 0.80
look-controls.jsFile · 0.80
ar-hit-test.jsFile · 0.80
xr-mode-ui.jsFile · 0.80
reflection.jsFile · 0.80
enterVRMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected