#1076 absorb native promise in m.prop

This commit is contained in:
Leo Horie 2016-05-26 11:04:04 -04:00
parent 7c392f071d
commit bf85b7a530

View file

@ -1306,7 +1306,7 @@
}
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)) {
return propify(store)
}