Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ loop_
Method
loop_
3p/3d-gltf/animation-loop.js:48–59 ·
view source on GitHub ↗
@private
()
Source
from the content-addressed store, hash-verified
46
47
/** @private */
48
loop_() {
49
if
(!this.isRunning_) {
50
return
;
51
}
52
53
if
(this.needsUpdate) {
54
this.needsUpdate = false;
55
this.task_();
56
}
57
58
this.currentRAF_ = requestAnimationFrame(this.loop_);
59
}
60
}
Callers
1
run
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected