Skip to content

Commit

Permalink
improve isNode check
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Sep 7, 2018
1 parent de71b8d commit de76a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/util/lang.js
Expand Up @@ -88,7 +88,7 @@ export function isJQuery(obj) {
}

export function isNode(obj) {
return obj instanceof Node || isObject(obj) && obj.nodeType === 1;
return obj instanceof Node || isObject(obj) && obj.nodeType >= 1;
}

const {toString} = objPrototype;
Expand Down

0 comments on commit de76a09

Please sign in to comment.