mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-24 13:29:01 -05:00
fix Common.isElement on node, closes #535
This commit is contained in:
parent
b5dc3b231d
commit
ec38eebc1d
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ module.exports = Common;
|
|||
return obj instanceof HTMLElement;
|
||||
}
|
||||
|
||||
return !!(obj.nodeType && obj.nodeName);
|
||||
return !!(obj && obj.nodeType && obj.nodeName);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue