aboutsummaryrefslogtreecommitdiffstats
path: root/src/animator.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/animator.js')
-rw-r--r--src/animator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animator.js b/src/animator.js
index 4d37008..ea3b605 100644
--- a/src/animator.js
+++ b/src/animator.js
@@ -47,7 +47,7 @@ SVG.Animator = {
// Find the index of the timeout to cancel and remove it
var index = SVG.Animator.timeouts.remove(
function (t) {
- return t.id === id
+ return t.value.id === id
}
)
return index
@@ -63,7 +63,7 @@ SVG.Animator = {
while ((nextTimeout = SVG.Animator.timeouts.shift())) {
// Run the timeout if its time, or push it to the end
- if (now > nextTimeout.time) {
+ if (now >= nextTimeout.time) {
nextTimeout.run()
} else {
SVG.Animator.timeouts.push(nextTimeout)