Skip to content

Commit 98a6f7d

Browse files
committed
Fix 'TypeError: Invalid calling object' in IE
1 parent 88b088b commit 98a6f7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/physics/matter-js/lib/core/Common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ module.exports = Common;
221221
* @return {boolean} True if the object is a string, otherwise false
222222
*/
223223
Common.isString = function(obj) {
224-
return toString.call(obj) === '[object String]';
224+
return Object.prototype.toString.call(obj) === '[object String]';
225225
};
226226

227227
/**

0 commit comments

Comments
 (0)