diff options
author | wout <wout@impinc.co.uk> | 2013-08-01 13:32:56 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-08-01 13:32:56 +0100 |
commit | eecebe3cdfdae38f4e0613807e7fd64359cb84fd (patch) | |
tree | 64ecf24398abedbf4ba657fd6b5905652b83129e /src/number.js | |
parent | 21d6c0b30a530ce7746f789921c7135079f43338 (diff) | |
download | svg.js-eecebe3cdfdae38f4e0613807e7fd64359cb84fd.tar.gz svg.js-eecebe3cdfdae38f4e0613807e7fd64359cb84fd.zip |
Added animatible poly's, bumped to v0.31
Diffstat (limited to 'src/number.js')
-rw-r--r-- | src/number.js | 2 |
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) |