Removes some Backbone views
This commit is contained in:
parent
93bc094342
commit
94d116c621
22 changed files with 160 additions and 656 deletions
|
@ -17,8 +17,8 @@ type ConfirmationDialogViewProps = {
|
|||
resolve: () => void;
|
||||
};
|
||||
|
||||
let confirmationDialogViewNode: HTMLElement | null = null;
|
||||
let confirmationDialogPreviousFocus: HTMLElement | null = null;
|
||||
let confirmationDialogViewNode: HTMLElement | undefined;
|
||||
let confirmationDialogPreviousFocus: HTMLElement | undefined;
|
||||
|
||||
function removeConfirmationDialog() {
|
||||
if (!confirmationDialogViewNode) {
|
||||
|
@ -34,7 +34,7 @@ function removeConfirmationDialog() {
|
|||
) {
|
||||
confirmationDialogPreviousFocus.focus();
|
||||
}
|
||||
confirmationDialogViewNode = null;
|
||||
confirmationDialogViewNode = undefined;
|
||||
}
|
||||
|
||||
function showConfirmationDialog(options: ConfirmationDialogViewProps) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue