use showHelp.close when it's defined

fixes #485
This commit is contained in:
tophf 2018-08-29 15:39:18 +03:00
parent 8cf05ee185
commit 681176ce31

View File

@ -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'},