aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorPatrick Klingemann <patrick.klingemann@gmail.com>2014-06-09 09:47:38 -0400
committerPatrick Klingemann <patrick.klingemann@gmail.com>2014-06-09 09:47:38 -0400
commit63d88467de624a48680d68a57752273934f13534 (patch)
tree4c33e69f00b68fa6a9c555c037ecb86a4abacb08 /src/element.js
parent41f6d9b0607a97bd7c643609c62c4fd0d8be1780 (diff)
downloadsvg.js-63d88467de624a48680d68a57752273934f13534.tar.gz
svg.js-63d88467de624a48680d68a57752273934f13534.zip
trim class attribute whitespace
Diffstat (limited to 'src/element.js')
-rwxr-xr-xsrc/element.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/element.js b/src/element.js
index 712bef2..2942831 100755
--- a/src/element.js
+++ b/src/element.js
@@ -347,7 +347,7 @@ SVG.Element = SVG.invent({
if (classAttr === null) {
return []
} else {
- return classAttr.split(/\s+/)
+ return classAttr.trim().split(/\s+/)
}
}
// Return true if class exists on the node, false otherwise