clean redundant type check

This commit is contained in:
Leo Horie 2014-10-12 22:01:31 -04:00
parent 549c18462f
commit 459c20b01e

View file

@ -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)
}