renamed Listener() to Event()

This commit is contained in:
zadam
2020-02-16 19:23:49 +01:00
parent e000fb4579
commit 880f4ad711
23 changed files with 96 additions and 96 deletions

View File

@@ -54,25 +54,25 @@ export default class NoteTitleWidget extends TabAwareWidget {
this.$noteTitle.prop("readonly", note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable());
}
async beforeNoteSwitchListener({tabId}) {
async beforeNoteSwitchEvent({tabId}) {
if (this.isTab(tabId)) {
await this.spacedUpdate.updateNowIfNecessary();
}
}
async beforeTabRemoveListener({tabId}) {
async beforeTabRemoveEvent({tabId}) {
if (this.isTab(tabId)) {
await this.spacedUpdate.updateNowIfNecessary();
}
}
focusOnTitleListener() {
focusOnTitleEvent() {
if (this.tabContext && this.tabContext.isActive()) {
this.$noteTitle.trigger('focus');
}
}
focusAndSelectTitleListener() {
focusAndSelectTitleEvent() {
if (this.tabContext && this.tabContext.isActive()) {
this.$noteTitle
.trigger('focus')
@@ -80,7 +80,7 @@ export default class NoteTitleWidget extends TabAwareWidget {
}
}
beforeUnloadListener() {
beforeUnloadEvent() {
this.spacedUpdate.updateNowIfNecessary();
}
}