diff options
author | wout <wout@impinc.co.uk> | 2013-01-06 19:01:01 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-01-06 19:01:01 +0100 |
commit | 661d1f8058a26f883a17d926577e96dcc3818df0 (patch) | |
tree | a03abaefe62fb1bbdee7fe99c8b0cd8b92547a45 /src | |
parent | 50e1e48708d86ac0392348190f36d6c0c557a1d6 (diff) | |
download | svg.js-661d1f8058a26f883a17d926577e96dcc3818df0.tar.gz svg.js-661d1f8058a26f883a17d926577e96dcc3818df0.zip |
Updated README
Diffstat (limited to 'src')
-rw-r--r-- | src/container.js | 6 | ||||
-rw-r--r-- | src/wrap.js | 6 |
2 files changed, 6 insertions, 6 deletions
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( |