diff options
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/dist/svg.js b/dist/svg.js index 6a9ae01..e540a33 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * -* BUILT: Mon Feb 20 2017 15:25:03 GMT+0100 (Mitteleuropäische Zeit) +* BUILT: Wed Feb 22 2017 00:19:11 GMT-0500 (EST) */; (function(root, factory) { if (typeof define === 'function' && define.amd) { @@ -974,19 +974,23 @@ SVG.Number = SVG.invent({ } // Add number , plus: function(number) { - return new SVG.Number(this + new SVG.Number(number), this.unit) + number = new SVG.Number(number) + return new SVG.Number(this + number, this.unit || number.unit) } // Subtract number , minus: function(number) { - return this.plus(-new SVG.Number(number)) + number = new SVG.Number(number) + return new SVG.Number(this - number, this.unit || number.unit) } // Multiply number , times: function(number) { - return new SVG.Number(this * new SVG.Number(number), this.unit) + number = new SVG.Number(number) + return new SVG.Number(this * number, this.unit || number.unit) } // Divide number , divide: function(number) { - return new SVG.Number(this / new SVG.Number(number), this.unit) + number = new SVG.Number(number) + return new SVG.Number(this / number, this.unit || number.unit) } // Convert to different unit , to: function(unit) { |