From 661d1f8058a26f883a17d926577e96dcc3818df0 Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 6 Jan 2013 19:01:01 +0100 Subject: Updated README --- src/container.js | 6 +++--- src/wrap.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/container.js b/src/container.js index a43ce75..d828371 100644 --- a/src/container.js +++ b/src/container.js @@ -78,15 +78,15 @@ SVG.Container = { }, // Create a wrapped polyline element polyline: function(points) { - return this.put(new Wrap(new SVG.Polyline())).plot(points); + return this.put(new SVG.Wrap(new SVG.Polyline())).plot(points); }, // Create a wrapped polygon element polygon: function(points) { - return this.put(new Wrap(new SVG.Polygon())).plot(points); + return this.put(new SVG.Wrap(new SVG.Polygon())).plot(points); }, // Create a wrapped path element path: function(data) { - return this.put(new Wrap(new SVG.Path())).plot(data); + return this.put(new SVG.Wrap(new SVG.Path())).plot(data); }, // Create image element, load image and set its size image: function(source, width, height) { diff --git a/src/wrap.js b/src/wrap.js index 85a09a6..0ae3a03 100644 --- a/src/wrap.js +++ b/src/wrap.js @@ -1,4 +1,4 @@ -function Wrap(element) { +SVG.Wrap = function Wrap(element) { this.constructor.call(this, SVG.create('g')); /* insert and store child */ @@ -7,9 +7,9 @@ function Wrap(element) { }; // inherit from SVG.Shape -Wrap.prototype = new SVG.Shape(); +SVG.Wrap.prototype = new SVG.Shape(); -SVG.extend(Wrap, { +SVG.extend(SVG.Wrap, { // Move wrapper around move: function(x, y) { return this.center( -- cgit v1.2.3