Skip to content

Commit ec38eeb

Browse files
committed
fix Common.isElement on node, closes #535
1 parent b5dc3b2 commit ec38eeb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/Common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ module.exports = Common;
181181
return obj instanceof HTMLElement;
182182
}
183183

184-
return !!(obj.nodeType && obj.nodeName);
184+
return !!(obj && obj.nodeType && obj.nodeName);
185185
};
186186

187187
/**

0 commit comments

Comments
 (0)