check for existence of Promise before doing check against it
This commit is contained in:
parent
0ad6749f87
commit
ce748f9f71
1 changed files with 1 additions and 1 deletions
|
|
@ -1338,7 +1338,7 @@
|
|||
}
|
||||
|
||||
m.prop = function (store) {
|
||||
if ((store != null && isObject(store) || isFunction(store)) || store instanceof window.Promise &&
|
||||
if ((store != null && isObject(store) || isFunction(store)) || (typeof Promise !== "undefined" && store instanceof Promise) &&
|
||||
isFunction(store.then)) {
|
||||
return propify(store)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue