summaryrefslogtreecommitdiffstats
path: root/src/elements/Polyline.js
diff options
context:
space:
mode:
authorSaivan <savian@me.com>2018-11-26 00:17:41 +1300
committerSaivan <savian@me.com>2018-11-26 00:17:41 +1300
commit617aa12304541cf1d80b2bf5567ac633958c38de (patch)
treec1082b4573625f93d18e82e6d5a0c4a40782993f /src/elements/Polyline.js
parent599fda2f11c88b2c18d0cd0b57d4adeca20db2eb (diff)
downloadsvg.js-617aa12304541cf1d80b2bf5567ac633958c38de.tar.gz
svg.js-617aa12304541cf1d80b2bf5567ac633958c38de.zip
Reverted some of the lint rules after chatting with fuzzy
This commit reverts some of the rules we added on the linter, it changed a lot of code again... but these won't happen too often. Changes ======= - Modified the linter again
Diffstat (limited to 'src/elements/Polyline.js')
-rw-r--r--src/elements/Polyline.js26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/elements/Polyline.js b/src/elements/Polyline.js
index 3749c93..5897295 100644
--- a/src/elements/Polyline.js
+++ b/src/elements/Polyline.js
@@ -11,28 +11,22 @@ import * as pointed from '../modules/core/pointed.js'
import * as poly from '../modules/core/poly.js'
export default class Polyline extends Shape {
-
// Initialize node
- constructor ( node ) {
-
- super( nodeOrNew( 'polyline', node ), node )
-
+ constructor (node) {
+ super(nodeOrNew('polyline', node), node)
}
-
}
-registerMethods( {
+registerMethods({
Container: {
// Create a wrapped polygon element
- polyline: wrapWithAttrCheck( function ( p ) {
-
+ polyline: wrapWithAttrCheck(function (p) {
// make sure plot is called as a setter
- return this.put( new Polyline() ).plot( p || new PointArray() )
-
- } )
+ return this.put(new Polyline()).plot(p || new PointArray())
+ })
}
-} )
+})
-extend( Polyline, pointed )
-extend( Polyline, poly )
-register( Polyline )
+extend(Polyline, pointed)
+extend(Polyline, poly)
+register(Polyline)