diff options
author | wout <wout@impinc.co.uk> | 2013-04-15 13:17:20 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-04-15 13:17:20 +0100 |
commit | a736acc12e4ca1a71b9f563f7ed361e2a3540469 (patch) | |
tree | c2e1d52070454ce1f26de9174f6a22b1568b4d28 /src/element.js | |
parent | d0c34f778e854bd5f3e1c15d853bd126aad2d85d (diff) | |
download | svg.js-a736acc12e4ca1a71b9f563f7ed361e2a3540469.tar.gz svg.js-a736acc12e4ca1a71b9f563f7ed361e2a3540469.zip |
Parsing numeric values as a global getter0.14
Diffstat (limited to 'src/element.js')
-rw-r--r-- | src/element.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js index 3665dc2..8869f2b 100644 --- a/src/element.js +++ b/src/element.js @@ -105,7 +105,7 @@ SVG.extend(SVG.Element, { a = {} v = this.node.attributes for (n = v.length - 1; n >= 0; n--) - a[v[n].nodeName] = v[n].nodeValue + a[v[n].nodeName] = SVG.regex.test(v[n].nodeValue, 'isNumber') ? parseFloat(v[n].nodeValue) : v[n].nodeValue return a |