0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-25 13:39:06 -05:00

fix Common.isElement on node, closes #535

This commit is contained in:
liabru 2018-01-10 21:34:17 +00:00
parent b5dc3b231d
commit ec38eebc1d

View file

@ -181,7 +181,7 @@ module.exports = Common;
return obj instanceof HTMLElement; return obj instanceof HTMLElement;
} }
return !!(obj.nodeType && obj.nodeName); return !!(obj && obj.nodeType && obj.nodeName);
}; };
/** /**