summaryrefslogtreecommitdiffstats
path: root/src/rect.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-10-22 22:38:43 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-10-22 22:38:43 +0200
commit4505aeabed26fbcb7bb896f046c65da9e1bd65b1 (patch)
tree509f65b299aa58a95cd4f521db5212b83bfef74a /src/rect.js
parentd6a4a9388944c71590e62018f1a466a5e82f7d95 (diff)
downloadsvg.js-4505aeabed26fbcb7bb896f046c65da9e1bd65b1.tar.gz
svg.js-4505aeabed26fbcb7bb896f046c65da9e1bd65b1.zip
fix rect
Diffstat (limited to 'src/rect.js')
-rw-r--r--src/rect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rect.js b/src/rect.js
index 8f90e90..6c639fe 100644
--- a/src/rect.js
+++ b/src/rect.js
@@ -9,7 +9,7 @@ SVG.Rect = SVG.invent({
, construct: {
// Create a rect element
rect: function(width, height) {
- return this.put(new SVG.Rect().size(width, height))
+ return this.put(new SVG.Rect()).size(width, height)
}
}
}) \ No newline at end of file