From f52fd0d124e5188bb13d68cc2d004f9255bcf6f6 Mon Sep 17 00:00:00 2001 From: narcolepticinsomniac Date: Fri, 12 Oct 2018 17:28:47 -0400 Subject: [PATCH] Reincorporate 8's updates --- edit/beautify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edit/beautify.js b/edit/beautify.js index 830b7e71..5be10608 100644 --- a/edit/beautify.js +++ b/edit/beautify.js @@ -40,7 +40,8 @@ function beautify(event) { $create('.buttons', [ $create('button', { attributes: {role: 'close'}, - onclick: showHelp.close, + // showHelp.close will be defined after showHelp() is invoked + onclick: () => showHelp.close(), }, t('confirmClose')), $create('button', { attributes: {role: 'undo'},