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

Function hasBehavior

src/core/component.js:709–711  ·  view source on GitHub ↗

* Checks if a component has defined a method that needs to run every frame.

(component)

Source from the content-addressed store, hash-verified

707 * Checks if a component has defined a method that needs to run every frame.
708 */
709function hasBehavior (component) {
710 return component.tick || component.tock;
711}
712
713/**
714 * Wrapper for defined pause method.

Callers 2

wrapPauseFunction · 0.85
wrapPlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected