MCPcopy Create free account
hub / github.com/ampproject/amphtml / constructor

Method constructor

3p/3d-gltf/animation-loop.js:6–21  ·  view source on GitHub ↗

* Creates an instance of AnimationLoop. * @param {!Function} task

(task)

Source from the content-addressed store, hash-verified

4 * @param {!Function} task
5 */
6 constructor(task) {
7 /** @private */
8 this.task_ = task;
9
10 /** @private {boolean} */
11 this.isRunning_ = false;
12
13 /** @private {number} */
14 this.currentRAF_ = 0;
15
16 /** @public {boolean} */
17 this.needsUpdate = true;
18
19 /** @private */
20 this.loop_ = this.loop_.bind(this);
21 }
22
23 /**
24 * Runs the task

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected