From 53af483a18697c1e966b2181cba2f830452d7817 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Sat, 26 Aug 2017 00:37:51 -0500 Subject: [PATCH] Revert 18a94cac30e18c --- msgbox/msgbox.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/msgbox/msgbox.js b/msgbox/msgbox.js index f545e26a..4e418832 100644 --- a/msgbox/msgbox.js +++ b/msgbox/msgbox.js @@ -43,12 +43,10 @@ function messageBox({ } function resolveWith(value) { - if (messageBox.resolve) { - unbindGlobalListeners(); - setTimeout(messageBox.resolve, 0, value); - animateElement(messageBox.element, {className: 'fadeout', remove: true}) - .then(removeSelf); - } + unbindGlobalListeners(); + setTimeout(messageBox.resolve, 0, value); + animateElement(messageBox.element, {className: 'fadeout', remove: true}) + .then(removeSelf); } function createElement() {