Multi-window fix for Objects.isObject
This commit is contained in:
parent
d7cb85131d
commit
97bc2ab4ad
|
@ -58,6 +58,7 @@ Object.defineProperty(Object, 'isObject', {
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
writable: true,
|
writable: true,
|
||||||
value: function (obj) {
|
value: function (obj) {
|
||||||
return ((!!obj) && (obj.constructor === Object))
|
return (obj != null && typeof obj === 'object' &&
|
||||||
|
Object.prototype.toString.call(obj) === '[object Object]')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue