summaryrefslogtreecommitdiffstats
path: root/src/number.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-06-30 11:16:59 +0100
committerwout <wout@impinc.co.uk>2013-06-30 11:16:59 +0100
commit578c2bd6dffed8a636e64dbfbfedd3eb53539665 (patch)
tree93f656fb9087233bd189c93b53696cd3548242fa /src/number.js
parente4fb8522a2c57069b2523f16de92d5eb7e6dd85e (diff)
downloadsvg.js-578c2bd6dffed8a636e64dbfbfedd3eb53539665.tar.gz
svg.js-578c2bd6dffed8a636e64dbfbfedd3eb53539665.zip
Fix in unit parser with negative values.
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 28e260e..8cbf93a 100644
--- a/src/number.js
+++ b/src/number.js
@@ -13,7 +13,7 @@ SVG.Number = function(value) {
case 'string':
var match = value.match(SVG.regex.unit)
- /* make valu numeric */
+ /* make value numeric */
this.value = parseFloat(match[1])
/* normalize percent value */