private vars
This commit is contained in:
6
tween.cm
6
tween.cm
@@ -171,7 +171,7 @@ Timeline.prototype.play = function() {
|
||||
this.last_tick = now
|
||||
this.current_time += dt
|
||||
this.seek(this.current_time)
|
||||
$_.delay(loop, rate)
|
||||
$delay(loop, rate)
|
||||
}
|
||||
loop()
|
||||
}
|
||||
@@ -207,7 +207,7 @@ Timeline.prototype.toJSON = function() {
|
||||
// Live update loop for fire-and-forget tweens
|
||||
function live_update_loop() {
|
||||
TweenEngine.update()
|
||||
$_.delay(live_update_loop, rate)
|
||||
$delay(live_update_loop, rate)
|
||||
}
|
||||
|
||||
// Factory function
|
||||
@@ -227,7 +227,7 @@ function init(default_clock) {
|
||||
}
|
||||
|
||||
// Auto-init with real time if not explicitly initialized
|
||||
$_.delay(() => {
|
||||
$delay(() => {
|
||||
if (!TweenEngine.default_clock) {
|
||||
init()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user