diff options
author | Saivan <savian@me.com> | 2018-05-26 00:01:33 +1000 |
---|---|---|
committer | Saivan <savian@me.com> | 2018-05-26 00:01:33 +1000 |
commit | cbf1359e0ab469e1137450192b7d612501c4bb5c (patch) | |
tree | 9c16890a36184cf02b86a2a6c948065e83ecc226 /src/timeline.js | |
parent | 69869d25c4b8fb4cd0f428ead4112ebb14dd2fb4 (diff) | |
download | svg.js-cbf1359e0ab469e1137450192b7d612501c4bb5c.tar.gz svg.js-cbf1359e0ab469e1137450192b7d612501c4bb5c.zip |
Fixed all of the low hanging problems so declarative works
Diffstat (limited to 'src/timeline.js')
-rw-r--r-- | src/timeline.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/timeline.js b/src/timeline.js index 9ed6b74..be8d52e 100644 --- a/src/timeline.js +++ b/src/timeline.js @@ -248,13 +248,13 @@ SVG.Timeline = SVG.invent({ var runnersLeft = false for (var i = 0; i < this._runners.length ; i++) { - // Get and run the current runner and figure out if its done running + // Get and run the current runner and ignore it if its inactive var runner = this._runners[i] - - var finished = runner.step(dt) + if(!runner.active()) continue // If this runner is still going, signal that we need another animation // frame, otherwise, remove the completed runner + var finished = runner.step(dt).done if (!finished) { runnersLeft = true } @@ -288,7 +288,6 @@ SVG.Timeline = SVG.invent({ }, }, - // These methods will be added to all SVG.Element objects parent: SVG.Element, construct: { |