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:
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 instanceof HTMLElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !!(obj.nodeType && obj.nodeName);
|
return !!(obj && obj.nodeType && obj.nodeName);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue