#1076 absorb native promise in m.prop
This commit is contained in:
parent
7c392f071d
commit
bf85b7a530
1 changed files with 1 additions and 1 deletions
|
|
@ -1306,7 +1306,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
m.prop = function (store) {
|
m.prop = function (store) {
|
||||||
if ((store != null && isObject(store) || isFunction(store)) &&
|
if ((store != null && isObject(store) || isFunction(store)) || store instanceof window.Promise &&
|
||||||
isFunction(store.then)) {
|
isFunction(store.then)) {
|
||||||
return propify(store)
|
return propify(store)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue