diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-02-28 13:50:08 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-02-28 13:50:08 +0100 |
commit | fa5b44bad00b9a44de551552510a07ea94200386 (patch) | |
tree | 0e3d609273937251bb3d862b91f5c699edb719bf /src/sugar.js | |
parent | 659fc06e7e2e916379bd105bf7908ab77877acd3 (diff) | |
download | svg.js-fa5b44bad00b9a44de551552510a07ea94200386.tar.gz svg.js-fa5b44bad00b9a44de551552510a07ea94200386.zip |
added tests to increase code coverage
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar.js b/src/sugar.js index ddd4826..4110718 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -57,7 +57,7 @@ SVG.extend(SVG.Element, SVG.FX, { } // Map matrix to transform , matrix: function(m) { - return this.attr('transform', new SVG.Matrix(m)) + return this.attr('transform', new SVG.Matrix(arguments.length == 6 ? [].slice.call(arguments) : m)) } // Opacity , opacity: function(value) { |