summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-28 10:22:40 +0100
committerwout <wout@impinc.co.uk>2013-01-28 10:22:40 +0100
commit66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0 (patch)
tree4d7af117665154138e698cb23aea07203e069c07 /src
parentf636268a12039ececaaec14ad1fd3d2671799297 (diff)
downloadsvg.js-66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0.tar.gz
svg.js-66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0.zip
Fix in scale() in sugar module0.3
Diffstat (limited to 'src')
-rw-r--r--src/sugar.js4
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
});
}