diff options
-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 } |