diff options
Diffstat (limited to 'src/matrix.js')
-rw-r--r-- | src/matrix.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/matrix.js b/src/matrix.js index 970e3be..7b8ced9 100644 --- a/src/matrix.js +++ b/src/matrix.js @@ -115,12 +115,11 @@ SVG.Matrix = SVG.invent({ } // Flip matrix on x or y, at a given offset , flip: function(a, o) { - o = typeof a == 'number' ? a : o return a == 'x' ? this.scale(-1, 1, o, 0) : a == 'y' ? this.scale(1, -1, 0, o) : - this.scale(-1, -1, o, o) + this.scale(-1, -1, a, o != null ? o : a) } // Skew , skew: function(x, y, cx, cy) { |