From ec38eebc1d878b562bbc9e437035eac225864556 Mon Sep 17 00:00:00 2001 From: liabru Date: Wed, 10 Jan 2018 21:34:17 +0000 Subject: [PATCH] fix Common.isElement on node, closes #535 --- src/core/Common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Common.js b/src/core/Common.js index 143204f..db530c3 100644 --- a/src/core/Common.js +++ b/src/core/Common.js @@ -181,7 +181,7 @@ module.exports = Common; return obj instanceof HTMLElement; } - return !!(obj.nodeType && obj.nodeName); + return !!(obj && obj.nodeType && obj.nodeName); }; /**