aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fx.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fx.js b/src/fx.js
index 64bc030..36535b1 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -577,8 +577,12 @@ SVG.FX = SVG.invent({
if(!this.situations.length){
this.target().fire('allfinished')
- this.target().off('.fx') // there shouldnt be any binding left, but to make sure...
- this.active = false
+
+ // Recheck the length since the user may call animate in the afterAll callback
+ if(!this.situations.length){
+ this.target().off('.fx') // there shouldnt be any binding left, but to make sure...
+ this.active = false
+ }
}
// start next animation