Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tweens/tween/BaseTween.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,13 @@ var BaseTween = new Class({
*/
updateStartCountdown: function (delta)
{
this.countdown -= delta;
this.startDelay -= delta;

if (this.countdown <= 0)
if (this.startDelay <= 0)
{
this.hasStarted = true;

this.setActiveState();

this.hasStarted = true;

this.dispatchEvent(Events.TWEEN_START, 'onStart');

Expand Down
12 changes: 1 addition & 11 deletions src/tweens/tween/Tween.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,17 +684,7 @@ var Tween = new Class({
}
else if (!this.hasStarted)
{
this.startDelay -= delta;

if (this.startDelay <= 0)
{
this.hasStarted = true;

this.dispatchEvent(Events.TWEEN_START, 'onStart');

// Reset the delta so we always start progress from zero
delta = 0;
}
delta = this.updateStartCountdown(delta);
}

var stillRunning = false;
Expand Down
12 changes: 1 addition & 11 deletions src/tweens/tween/TweenChain.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,17 +425,7 @@ var TweenChain = new Class({
}
else if (!this.hasStarted)
{
this.startDelay -= delta;

if (this.startDelay <= 0)
{
this.hasStarted = true;

this.dispatchEvent(Events.TWEEN_START, 'onStart');

// Reset the delta so we always start progress from zero
delta = 0;
}
delta = this.updateStartCountdown(delta);
}

var remove = false;
Expand Down