summaryrefslogtreecommitdiffstats
path: root/src/path.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-24 19:19:06 +0100
committerwout <wout@impinc.co.uk>2013-03-24 19:19:06 +0100
commit67d367e0d74b3287956130da0077e42c6483dd2f (patch)
treebb2d23315e39c89b79cb8c52e7a5db54636e08ad /src/path.js
parentff09596144c3fd6770d1dc64178a10c2432396ca (diff)
downloadsvg.js-67d367e0d74b3287956130da0077e42c6483dd2f.tar.gz
svg.js-67d367e0d74b3287956130da0077e42c6483dd2f.zip
Bumped to v0.11
- removed SVG.Wrap on SVG.Polyline, SVG.Polygon and SVG.Path - added delay on SVG.FX module - made x(), y(), cx() and cy() as getters - added SGB.get() method, to get elements by a DOM id - fixed bug in remove() method on container elements - added jasmine test suite to repo
Diffstat (limited to 'src/path.js')
-rw-r--r--src/path.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/path.js b/src/path.js
index 4f53892..ab5221a 100644
--- a/src/path.js
+++ b/src/path.js
@@ -3,19 +3,11 @@ SVG.Path = function() {
}
// Inherit from SVG.Shape
-SVG.Path.prototype = new SVG.Shape()
+SVG.Path.prototype = new SVG.Shape
SVG.extend(SVG.Path, {
- // Move over x-axis
- x: function(x) {
- return this.transform('x', x)
- }
- // Move over y-axis
-, y: function(y) {
- return this.transform('y', y)
- }
- // Set path data
-, plot: function(data) {
+ // Private: Native plot
+ _plot: function(data) {
return this.attr('d', data || 'M0,0')
}