From: mkorganashvili Date: Mon, 25 Apr 2016 18:17:09 +0000 (+0400) Subject: Fix groups animation X-Git-Tag: 2.3.2~2^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7588f0975c6e444a8217a61e80b9ffdd7e440b11;p=svg.js.git Fix groups animation --- 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 }