From 100f9054f3dcaf13e559e46f2b71b97b746b0a2b Mon Sep 17 00:00:00 2001 From: kimorkim Date: Mon, 23 Oct 2017 18:08:11 +0900 Subject: [PATCH] change Promise -> defer on entrylms.confirm --- src/renderer/src/require.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/require.js b/src/renderer/src/require.js index 7d9a335bd..92ebac321 100644 --- a/src/renderer/src/require.js +++ b/src/renderer/src/require.js @@ -59,8 +59,11 @@ window.entrylms = { }, confirm: function (text) { var isConfirm = confirm(text); - return new Promise((resolve, reject) => { - resolve(isConfirm); - }); + var defer = new $.Deferred; + return defer.resolve(isConfirm); + // 기본 Promise로 동작시키면 then이 비동기로 동작하여 타이밍 문제 발생 + // return new Promise((resolve, reject) => { + // resolve(isConfirm); + // }); }, }