0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00

Update Common.js

This commit is contained in:
finscn 2017-12-26 16:12:59 +08:00 committed by GitHub
parent b5dc3b231d
commit 0cc25ce207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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