diff options
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js index b73be2e..a5725e1 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -48,8 +48,8 @@ var _colorPrefix = function(type, attr) { // Scale scale: function(x, y) { return this.transform({ - scaleX: x || 0, - scaleY: y || 0 + scaleX: x, + scaleY: y == null ? x : y }); } |