aboutsummaryrefslogtreecommitdiffstats
path: root/src/poly.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/poly.js')
-rw-r--r--src/poly.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/poly.js b/src/poly.js
index 395b0bf..9e89570 100644
--- a/src/poly.js
+++ b/src/poly.js
@@ -1,28 +1,28 @@
SVG.Poly = {
// Set polygon data with default zero point if no data is passed
plot: function(points) {
- this.attr('points', points || '0,0');
+ this.attr('points', points || '0,0')
- return this;
+ return this
}
-};
+}
-SVG.Polyline = function Polyline() {
- this.constructor.call(this, SVG.create('polyline'));
-};
+SVG.Polyline = function() {
+ this.constructor.call(this, SVG.create('polyline'))
+}
// Inherit from SVG.Shape
-SVG.Polyline.prototype = new SVG.Shape();
+SVG.Polyline.prototype = new SVG.Shape()
// Add polygon-specific functions
-SVG.extend(SVG.Polyline, SVG.Poly);
+SVG.extend(SVG.Polyline, SVG.Poly)
-SVG.Polygon = function Polygon() {
- this.constructor.call(this, SVG.create('polygon'));
-};
+SVG.Polygon = function() {
+ this.constructor.call(this, SVG.create('polygon'))
+}
// Inherit from SVG.Shape
-SVG.Polygon.prototype = new SVG.Shape();
+SVG.Polygon.prototype = new SVG.Shape()
// Add polygon-specific functions
-SVG.extend(SVG.Polygon, SVG.Poly); \ No newline at end of file
+SVG.extend(SVG.Polygon, SVG.Poly) \ No newline at end of file