summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 89b32e6..fa72966 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Wed May 30 2018 08:30:35 GMT+0200 (Mitteleuropäische Sommerzeit)
+* BUILT: Wed May 30 2018 17:17:51 GMT+0200 (Mitteleuropäische Sommerzeit)
*/;
(function(root, factory) {
@@ -1041,6 +1041,7 @@ SVG.extend(SVG.PathArray, {
SVG.Number = SVG.invent({
// Initialize
create: function (value, unit) {
+ unit = Array.isArray(value) ? value[1] : unit
value = Array.isArray(value) ? value[0] : value
// initialize defaults
@@ -1086,7 +1087,7 @@ SVG.Number = SVG.invent({
return this.toString()
}, // Convert to primitive
toArray: function () {
- return [this.value]
+ return [this.value, this.unit]
},
valueOf: function () {
return this.value