summaryrefslogtreecommitdiffstats
path: root/src/number.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/number.js')
-rw-r--r--src/number.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/number.js b/src/number.js
index 0ca8831..f0c53e0 100644
--- a/src/number.js
+++ b/src/number.js
@@ -48,6 +48,9 @@ SVG.Number = SVG.invent({
this.value
) + this.unit
}
+ , toJSON: function() {
+ return this.toString()
+ }
, // Convert to primitive
valueOf: function() {
return this.value