mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-31 18:14:55 -05:00
Fixed Common.isString on IE
This commit is contained in:
parent
5a12f56067
commit
186a38535f
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ module.exports = Common;
|
|||
* @return {boolean} True if the object is a string, otherwise false
|
||||
*/
|
||||
Common.isString = function(obj) {
|
||||
return toString.call(obj) === '[object String]';
|
||||
return Object.prototype.toString.call(obj) === '[object String]';
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue