]> source.dussan.org Git - svg.js.git/commitdiff
Fix groups animation 481/head
authormkorganashvili <mkorganashvili@gmail.com>
Mon, 25 Apr 2016 18:17:09 +0000 (22:17 +0400)
committermkorganashvili <mkorganashvili@gmail.com>
Mon, 25 Apr 2016 18:17:09 +0000 (22:17 +0400)
src/transform.js

index d3bc964fa9494ff7c374c945ba61359b9773cb39..7886c05c0265e227faf0d2192913370c1771ab02 100644 (file)
@@ -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
     }