Skip to content
Browse files

Merge pull request #85 from kwamenum86/frag-fix

Modify isNode to return true for document fragments
  • Loading branch information...
2 parents 4f73166 + c178ade commit f92d871ae9e09212fffc600de7185584ad99e832 @ded committed May 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 bonzo.js
  2. +1 −1 src/bonzo.js
View
2 bonzo.js
@@ -122,7 +122,7 @@
}
function isNode(node) {
- return node && node.nodeName && node.nodeType == 1
+ return node && node.nodeName && (node.nodeType == 1 || node.nodeType == 11)
}
function some(ar, fn, scope, i, j) {
View
2 src/bonzo.js
@@ -117,7 +117,7 @@
}
function isNode(node) {
- return node && node.nodeName && node.nodeType == 1
+ return node && node.nodeName && (node.nodeType == 1 || node.nodeType == 11)
}
function some(ar, fn, scope, i, j) {

0 comments on commit f92d871

Please sign in to comment.
Something went wrong with that request. Please try again.