diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fx.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |