diff --git a/mithril.js b/mithril.js index a03fcc47..77022eb3 100644 --- a/mithril.js +++ b/mithril.js @@ -1816,8 +1816,8 @@ } if (state === REJECTING) { - d.onerror(promiseValue) - } + m.deferred.onerror(promiseValue) + } thennable(then, function () { state = RESOLVING