diff options
author | Saivan <savian@me.com> | 2018-11-26 00:17:41 +1300 |
---|---|---|
committer | Saivan <savian@me.com> | 2018-11-26 00:17:41 +1300 |
commit | 617aa12304541cf1d80b2bf5567ac633958c38de (patch) | |
tree | c1082b4573625f93d18e82e6d5a0c4a40782993f /src/main.js | |
parent | 599fda2f11c88b2c18d0cd0b57d4adeca20db2eb (diff) | |
download | svg.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/main.js')
-rw-r--r-- | src/main.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/main.js b/src/main.js index 951cc69..919fb25 100644 --- a/src/main.js +++ b/src/main.js @@ -116,50 +116,50 @@ export { default as TextPath } from './elements/TextPath.js' export { default as Tspan } from './elements/Tspan.js' export { default as Use } from './elements/Use.js' -extend( [ +extend([ Svg, Symbol, Image, Pattern, Marker -], getMethodsFor( 'viewbox' ) ) +], getMethodsFor('viewbox')) -extend( [ +extend([ Line, Polyline, Polygon, Path -], getMethodsFor( 'marker' ) ) +], getMethodsFor('marker')) -extend( Text, getMethodsFor( 'Text' ) ) -extend( Path, getMethodsFor( 'Path' ) ) +extend(Text, getMethodsFor('Text')) +extend(Path, getMethodsFor('Path')) -extend( Defs, getMethodsFor( 'Defs' ) ) +extend(Defs, getMethodsFor('Defs')) -extend( [ +extend([ Text, Tspan -], getMethodsFor( 'Tspan' ) ) +], getMethodsFor('Tspan')) -extend( [ +extend([ Rect, Ellipse, Circle, Gradient -], getMethodsFor( 'radius' ) ) +], getMethodsFor('radius')) -extend( EventTarget, getMethodsFor( 'EventTarget' ) ) -extend( Dom, getMethodsFor( 'Dom' ) ) -extend( Element, getMethodsFor( 'Element' ) ) -extend( Shape, getMethodsFor( 'Shape' ) ) +extend(EventTarget, getMethodsFor('EventTarget')) +extend(Dom, getMethodsFor('Dom')) +extend(Element, getMethodsFor('Element')) +extend(Shape, getMethodsFor('Shape')) // extend(Element, getConstructor('Memory')) -extend( Container, getMethodsFor( 'Container' ) ) +extend(Container, getMethodsFor('Container')) -extend( Runner, getMethodsFor( 'Runner' ) ) +extend(Runner, getMethodsFor('Runner')) -List.extend( getMethodNames() ) +List.extend(getMethodNames()) -registerMorphableType( [ +registerMorphableType([ SVGNumber, Color, Box, @@ -167,6 +167,6 @@ registerMorphableType( [ SVGArray, PointArray, PathArray -] ) +]) makeMorphable() |