From a736acc12e4ca1a71b9f563f7ed361e2a3540469 Mon Sep 17 00:00:00 2001 From: wout Date: Mon, 15 Apr 2013 13:17:20 +0100 Subject: Parsing numeric values as a global getter --- src/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/element.js') 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 -- cgit v1.2.3