diff --git a/mithril.js b/mithril.js index 464e8a5f..01e0794a 100644 --- a/mithril.js +++ b/mithril.js @@ -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) }