From 7588f0975c6e444a8217a61e80b9ffdd7e440b11 Mon Sep 17 00:00:00 2001 From: mkorganashvili Date: Mon, 25 Apr 2016 22:17:09 +0400 Subject: Fix groups animation --- src/transform.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/transform.js b/src/transform.js index d3bc964..7886c05 100644 --- a/src/transform.js +++ b/src/transform.js @@ -263,7 +263,12 @@ SVG.Transformation = SVG.invent({ } , undo: function(o){ + for(var i = 0, len = this.arguments.length; i < len; ++i){ + o[this.arguments[i]] = typeof this[this.arguments[i]] == 'undefined' ? 0 : o[this.arguments[i]] + } + this._undo = new SVG[capitalize(this.method)](o, true).at(1) + return this } -- cgit v1.2.3