From 66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0 Mon Sep 17 00:00:00 2001 From: wout Date: Mon, 28 Jan 2013 10:22:40 +0100 Subject: Fix in scale() in sugar module --- src/sugar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 }); } -- cgit v1.2.3