diff options
Diffstat (limited to 'src/sugar.js')
-rwxr-xr-x | src/sugar.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sugar.js b/src/sugar.js index e759812..cf19112 100755 --- a/src/sugar.js +++ b/src/sugar.js @@ -39,7 +39,9 @@ SVG.extend(SVG.Element, SVG.FX, { } // Scale , scale: function(x, y, cx, cy) { - return this.transform({ scaleX: x, scaleY: y, cx: cx, cy: cy }) + return arguments.length == 1 || arguments.length == 3 ? + this.transform({ scale: x, cx: y, cy: cx }) : + this.transform({ scaleX: x, scaleY: y, cx: cx, cy: cy }) } // Translate , translate: function(x, y) { |