clean redundant type check
This commit is contained in:
parent
549c18462f
commit
459c20b01e
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ Mithril = m = new function app(window, undefined) {
|
|||
|
||||
m.prop = function (store) {
|
||||
//note: using non-strict equality check here because we're checking if store is null OR undefined
|
||||
if ((isObj(store) || isFn(store)) && store != null && isFn(store.then)) {
|
||||
if ((isObj(store) || isFn(store)) && isFn(store.then)) {
|
||||
return propify(store)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue