Remove unused state
This commit is contained in:
parent
fb48309710
commit
466b0dd60c
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue