Multi-window fix for Objects.isObject

This commit is contained in:
pyoor 2017-06-08 18:15:31 -04:00
parent d7cb85131d
commit 97bc2ab4ad
1 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ Object.defineProperty(Object, 'isObject', {
enumerable: false,
writable: true,
value: function (obj) {
return ((!!obj) && (obj.constructor === Object))
return (obj != null && typeof obj === 'object' &&
Object.prototype.toString.call(obj) === '[object Object]')
}
})