Remove unused state

This commit is contained in:
Bill Thornton 2022-05-10 13:40:47 -04:00
parent fb48309710
commit 466b0dd60c

View file

@ -60,14 +60,12 @@ import '../../assets/css/scrollstyles.scss';
} }
if (shouldClose) { if (shouldClose) {
self.closedByBack = true;
close(dlg); close(dlg);
} }
} }
function onBackCommand(e) { function onBackCommand(e) {
if (e.detail.command === 'back') { if (e.detail.command === 'back') {
self.closedByBack = true;
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
close(dlg); close(dlg);
@ -121,8 +119,7 @@ import '../../assets/css/scrollstyles.scss';
// if we just called history.back(), then use a timeout to allow the history events to fire first // if we just called history.back(), then use a timeout to allow the history events to fire first
setTimeout(() => { setTimeout(() => {
resolve({ resolve({
element: dlg, element: dlg
closedByBack: self.closedByBack
}); });
}, 1); }, 1);
} }