aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
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 /dist/svg.js
parentf636268a12039ececaaec14ad1fd3d2671799297 (diff)
downloadsvg.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.js6
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
});
}