Skip to content

Commit 554b677

Browse files
committed
Merge pull request #1180 from evanc/master
Test that Node is a function before using instanceof on it
2 parents af1b634 + 26179d2 commit 554b677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vendor/core/dom/isNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
function isNode(object) {
2525
return !!(object && (
26-
typeof Node !== 'undefined' ? object instanceof Node :
26+
typeof Node === 'function' ? object instanceof Node :
2727
typeof object === 'object' &&
2828
typeof object.nodeType === 'number' &&
2929
typeof object.nodeName === 'string'

0 commit comments

Comments
 (0)