diff options
author | Wout <wout@users.noreply.github.com> | 2016-06-12 09:51:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-12 09:51:13 +0200 |
commit | 3b92d8c1f7e64b8f0792948bb90d8336a84f397b (patch) | |
tree | cb857746375a3916217c740008574284428bb540 /src | |
parent | 2bdbbb78bfa5203c6d3bb9ef29b27a97e7cd22ec (diff) | |
parent | 7588f0975c6e444a8217a61e80b9ffdd7e440b11 (diff) | |
download | svg.js-3b92d8c1f7e64b8f0792948bb90d8336a84f397b.tar.gz svg.js-3b92d8c1f7e64b8f0792948bb90d8336a84f397b.zip |
Merge pull request #481 from mkorganashvili/patch-1
Fix groups animation
Diffstat (limited to 'src')
-rw-r--r-- | src/transform.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 } |