don't shortcircuit promise check for objects
This commit is contained in:
parent
ce748f9f71
commit
b128fd8232
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue