From 90701a4cbbe3191be77a4311fd84497f90f43f80 Mon Sep 17 00:00:00 2001 From: impinball Date: Thu, 26 Nov 2015 07:49:15 -0500 Subject: [PATCH] Only call `then` once in `prop.then`. --- mithril.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mithril.js b/mithril.js index 2b832a7c..13fb9e5a 100644 --- a/mithril.js +++ b/mithril.js @@ -1212,8 +1212,8 @@ void (function (global, factory) { // eslint-disable-line prop.then = function (fufill, reject) { return promise.then(function () { - return prop() - }).then(fufill, reject) + return fufill(prop()) + }, reject) } prop.catch = function (reject) {