diff --git a/mithril.js b/mithril.js index 01e0794a..48744789 100644 --- a/mithril.js +++ b/mithril.js @@ -14,7 +14,7 @@ "use strict" m.version = function () { - return "v0.2.4" + return "v0.2.5" } var hasOwn = {}.hasOwnProperty @@ -1338,7 +1338,7 @@ } m.prop = function (store) { - if ((store != null && isObject(store) || isFunction(store)) || (typeof Promise !== "undefined" && store instanceof Promise) && + if ((store != null && (isObject(store) || isFunction(store)) || ((typeof Promise !== "undefined") && (store instanceof Promise))) && isFunction(store.then)) { return propify(store) } diff --git a/package.json b/package.json index be7e06af..e5efa7f1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mithril", "description": "Mithril.js - A Javascript Framework for Building Brilliant Applications", - "version": "0.2.4", + "version": "0.2.5", "homepage": "http://mithril.js.org", "license": "MIT", "author": {