summaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2016-08-04 08:58:29 +0200
committerwout <wout@impinc.co.uk>2016-08-04 08:58:29 +0200
commitb0a8b25f387d882e54dfddbbbc208a7c3ca39730 (patch)
tree6dcba89a33b2debf0f335033b3f27e241b71d6b0 /src/element.js
parent86c99607a393b43aeb50979e97ab69853293847f (diff)
downloadsvg.js-b0a8b25f387d882e54dfddbbbc208a7c3ca39730.tar.gz
svg.js-b0a8b25f387d882e54dfddbbbc208a7c3ca39730.zip
Speed improvements on parent element
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js
index 2bf912a..3713aac 100644
--- a/src/element.js
+++ b/src/element.js
@@ -54,7 +54,7 @@ SVG.Element = SVG.invent({
}
// Set element size to given width and height
, size: function(width, height) {
- var p = proportionalSize(this.bbox(), width, height)
+ var p = proportionalSize(this, width, height)
return this
.width(new SVG.Number(p.width))