Skip to content

Commit

Permalink
Animation.tick: мелкие изменения
Browse files Browse the repository at this point in the history
  • Loading branch information
ColCh committed Feb 4, 2014
1 parent 9890ee1 commit c0b5ca6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/animate_class.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,14 @@

this.update();

if (this.delayTime > 0 && elapsedTime <= deltaTime && this.elapsedTime >= this.delayTime) {
if (elapsedTime <= deltaTime && this.elapsedTime >= this.delayTime) {
this.fireOnStart();
} else if (this.previousIteration !== this.currentIteration) {
this.fireOnIteration();
} if (this.fractionalTime !== 0) {
} else {
this.fireOnStep();
}

} else {
this.stop();
this.fireOnComplete();
Expand Down

0 comments on commit c0b5ca6

Please sign in to comment.