summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkorganashvili <mkorganashvili@gmail.com>2016-04-25 22:17:09 +0400
committermkorganashvili <mkorganashvili@gmail.com>2016-04-25 22:17:09 +0400
commit7588f0975c6e444a8217a61e80b9ffdd7e440b11 (patch)
tree70148e3b08335a5cece759fee5bb19e5051cefd1
parent30df220d96e813e0dab08a08ebb00ba9cfa25352 (diff)
downloadsvg.js-7588f0975c6e444a8217a61e80b9ffdd7e440b11.tar.gz
svg.js-7588f0975c6e444a8217a61e80b9ffdd7e440b11.zip
Fix groups animation
-rw-r--r--src/transform.js5
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
}