From 59efb1e9e9b3b03ed5040d60b9576278bfd66399 Mon Sep 17 00:00:00 2001 From: Saivan Date: Sun, 4 Mar 2018 08:56:15 +1100 Subject: [PATCH] Build the final transformation code and fixed linting errors --- dist/svg.js | 6 +++--- src/sugar.js | 2 +- src/transform.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/svg.js b/dist/svg.js index f995734..b276845 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens * @license MIT * -* BUILT: Sun Mar 04 2018 01:42:31 GMT+1100 (AEDT) +* BUILT: Sun Mar 04 2018 08:55:46 GMT+1100 (AEDT) */; (function(root, factory) { @@ -2774,7 +2774,7 @@ SVG.extend(SVG.Element, { // same as above with parent equals root-svg toDoc: function () { return this.toParent(this.doc()) - }, + } }) SVG.extend(SVG.Element, { @@ -4931,7 +4931,7 @@ SVG.extend([SVG.Element, SVG.FX], { // Map flip to transform flip: function (direction, around) { - var directionString = typeof direction == 'string' ? direction + var directionString = typeof direction === 'string' ? direction : isFinite(direction) ? 'both' : 'both' var origin = (direction === 'both' && isFinite(around)) ? [around, around] diff --git a/src/sugar.js b/src/sugar.js index add423c..7a64a76 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -75,7 +75,7 @@ SVG.extend([SVG.Element, SVG.FX], { // Map flip to transform flip: function (direction, around) { - var directionString = typeof direction == 'string' ? direction + var directionString = typeof direction === 'string' ? direction : isFinite(direction) ? 'both' : 'both' var origin = (direction === 'both' && isFinite(around)) ? [around, around] diff --git a/src/transform.js b/src/transform.js index 643419c..0f6d775 100644 --- a/src/transform.js +++ b/src/transform.js @@ -44,7 +44,7 @@ SVG.extend(SVG.Element, { // same as above with parent equals root-svg toDoc: function () { return this.toParent(this.doc()) - }, + } }) SVG.extend(SVG.Element, { -- 2.39.5