summaryrefslogtreecommitdiffstats
path: root/src/line.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/line.js
parent86c99607a393b43aeb50979e97ab69853293847f (diff)
downloadsvg.js-b0a8b25f387d882e54dfddbbbc208a7c3ca39730.tar.gz
svg.js-b0a8b25f387d882e54dfddbbbc208a7c3ca39730.zip
Speed improvements on parent element
Diffstat (limited to 'src/line.js')
-rw-r--r--src/line.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/line.js b/src/line.js
index 8b8d1f3..cfe0533 100644
--- a/src/line.js
+++ b/src/line.js
@@ -29,7 +29,7 @@ SVG.Line = 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.attr(this.array().size(p.width, p.height).toLine())
}