diff options
author | wout <wout@impinc.co.uk> | 2013-01-28 10:22:40 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-01-28 10:22:40 +0100 |
commit | 66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0 (patch) | |
tree | 4d7af117665154138e698cb23aea07203e069c07 /dist/svg.js | |
parent | f636268a12039ececaaec14ad1fd3d2671799297 (diff) | |
download | svg.js-66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0.tar.gz svg.js-66d7cb4377cd5dd6363fc1a7f8f62552f85d70c0.zip |
Fix in scale() in sugar module0.3
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/svg.js b/dist/svg.js index 8caa1d4..44bc064 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.1-90-gb9981fd - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */ +/* svg.js v0.2 - svg container element fx event group arrange defs mask pattern gradient doc shape wrap rect ellipse poly path image text nested sugar - svgjs.com/license */ (function() { this.svg = function(element) { @@ -1391,8 +1391,8 @@ // Scale scale: function(x, y) { return this.transform({ - scaleX: x || 0, - scaleY: y || 0 + scaleX: x, + scaleY: y == null ? x : y }); } |