From 685e71d5a59bd18435d3702fb3513df472f8104c Mon Sep 17 00:00:00 2001 From: Isiah Meadows Date: Sun, 8 Nov 2015 10:30:55 -0500 Subject: [PATCH 1/2] Fix #824 --- mithril.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mithril.js b/mithril.js index 864565f4..a03fcc47 100644 --- a/mithril.js +++ b/mithril.js @@ -1815,6 +1815,10 @@ return fire() } + if (state === REJECTING) { + d.onerror(promiseValue) + } + thennable(then, function () { state = RESOLVING fire() From 40df7f4860922521d399d80b09d754de6339a343 Mon Sep 17 00:00:00 2001 From: Isiah Meadows Date: Sun, 8 Nov 2015 10:46:19 -0500 Subject: [PATCH 2/2] Forgot to lint --- mithril.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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