From 2d785535daf4fccb01c1b505aa3d71b2af4035e4 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Sat, 9 Apr 2016 18:30:27 +0200 Subject: fixed bug where `stop(true)` throws an error when element is not animated (#475) --- src/fx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fx.js') diff --git a/src/fx.js b/src/fx.js index 7b23d1d..9238e2b 100644 --- a/src/fx.js +++ b/src/fx.js @@ -281,7 +281,7 @@ SVG.FX = SVG.invent({ this.active = false - if(jumpToEnd){ + if(jumpToEnd && this.situation){ this.situation.loop = false -- cgit v1.2.3