Skip to content

Commit

Permalink
todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Dec 1, 2021
1 parent e8f9eea commit c19b2c8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/util/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
options.onStart && options.onStart();

(function tick(ticktime) {
// TODO: move abort call after calculation
// and pass (current,valuePerc, timePerc) as arguments
time = ticktime || +new Date();
var currentTime = time > finish ? duration : (time - start),
timePerc = currentTime / duration,
Expand All @@ -52,9 +50,6 @@
return;
}
if (abort(current, valuePerc, timePerc)) {
// remove this in 4.0
// does to even make sense to abort and run onComplete?
onComplete(endValue, 1, 1);
return;
}
if (time > finish) {
Expand Down

0 comments on commit c19b2c8

Please sign in to comment.