diff options
author | Patrick Klingemann <patrick.klingemann@gmail.com> | 2014-06-09 09:47:38 -0400 |
---|---|---|
committer | Patrick Klingemann <patrick.klingemann@gmail.com> | 2014-06-09 09:47:38 -0400 |
commit | 63d88467de624a48680d68a57752273934f13534 (patch) | |
tree | 4c33e69f00b68fa6a9c555c037ecb86a4abacb08 /src/element.js | |
parent | 41f6d9b0607a97bd7c643609c62c4fd0d8be1780 (diff) | |
download | svg.js-63d88467de624a48680d68a57752273934f13534.tar.gz svg.js-63d88467de624a48680d68a57752273934f13534.zip |
trim class attribute whitespace
Diffstat (limited to 'src/element.js')
-rwxr-xr-x | src/element.js | 2 |
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 |