Permalink
Browse files

lol

  • Loading branch information...
Raynos committed Jul 18, 2014
1 parent c4b5456 commit e740e869048b469812519481a58191c5b9104c28
Showing with 2 additions and 1 deletion.
  1. +2 −1 document.js
View
@@ -74,7 +74,8 @@ proto.getElementsByClassName = function getElementsByClassName(classNames, paren
var elems = []
domWalk(parent, function (node) {
- var classes = node.className.split(" ")
+ var className = node.className || ""
+ var classes = className.split(" ")
if (classes.indexOf(classNames) !== -1) {
elems.push(node)

0 comments on commit e740e86

Please sign in to comment.