aboutsummaryrefslogtreecommitdiffstats
path: root/src/container.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/container.js')
-rw-r--r--src/container.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/container.js b/src/container.js
index 3983366..63822e4 100644
--- a/src/container.js
+++ b/src/container.js
@@ -87,7 +87,7 @@ SVG.extend(SVG.Container, {
}
// Create a line element
, line: function(x1, y1, x2, y2) {
- return this.put(new SVG.Line().attr({ x1: x1, y1: y1, x2: x2, y2: y2 }))
+ return this.put(new SVG.Line().plot(x1, y1, x2, y2))
}
// Create a wrapped polyline element
, polyline: function(points) {