sync sidebar DOM state on page:change to minimize split-second appearance of the sidebar in certain situations
This commit is contained in:
parent
32c53d6d1b
commit
9b8ee45c87
1 changed files with 2 additions and 3 deletions
|
@ -23,8 +23,6 @@
|
|||
if (!singleton) {
|
||||
singleton = this;
|
||||
singleton.init();
|
||||
} else {
|
||||
singleton.renderState();
|
||||
}
|
||||
return singleton;
|
||||
}
|
||||
|
@ -38,7 +36,8 @@
|
|||
$(document)
|
||||
.on('click', sidebarToggleSelector, () => this.toggleSidebar())
|
||||
.on('click', pinnedToggleSelector, () => this.togglePinnedState())
|
||||
.on('click', 'html, body', (e) => this.handleClickEvent(e));
|
||||
.on('click', 'html, body', (e) => this.handleClickEvent(e))
|
||||
.on('page:change', () => this.renderState());
|
||||
this.renderState();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue