summaryrefslogtreecommitdiffstats
path: root/src/number.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/number.js')
-rw-r--r--src/number.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/number.js b/src/number.js
index ae3c120..2b3b147 100644
--- a/src/number.js
+++ b/src/number.js
@@ -9,7 +9,7 @@ SVG.Number = function(value) {
switch(typeof value) {
case 'number':
/* ensure a valid numeric value */
- this.value = isNaN(value) ? 0 : !isFinite(value) ? (value < 0 ? Number.MIN_VALUE : Number.MAX_VALUE) : value
+ this.value = isNaN(value) ? 0 : !isFinite(value) ? (value < 0 ? -3.4e+38 : +3.4e+38) : value
break
case 'string':
var match = value.match(SVG.regex.unit)