diff --git a/app/assets/javascripts/ui_models/app_state.ts b/app/assets/javascripts/ui_models/app_state.ts index 337dfb6b3..a24b9e2c6 100644 --- a/app/assets/javascripts/ui_models/app_state.ts +++ b/app/assets/javascripts/ui_models/app_state.ts @@ -84,7 +84,7 @@ export class AppState { } /** - * Creates a new editor if one doesn't exist. If one does, we'll replace the + * Creates a new editor if one doesn't exist. If one does, we'll replace the * editor's note with an empty one. */ createEditor(title?: string) { @@ -222,8 +222,8 @@ export class AppState { } async notifyEvent(eventName: AppStateEvent, data?: any) { - /** - * Timeout is particullary important so we can give all initial + /** + * Timeout is particullary important so we can give all initial * controllers a chance to construct before propogting any events * */ return new Promise((resolve) => { diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 4214ba083..afb8ef9ce 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -203,7 +203,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> { this.showAllChangesSavedStatus(); } } else { - this.showSavingStatus(); + this.showSavingStatus(); } } }); @@ -515,7 +515,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> { }, syncDebouceMs); } - showSavingStatus() { + showSavingStatus() { this.setStatus( { message: "Saving…" }, false diff --git a/app/assets/javascripts/views/notes/notes_view.ts b/app/assets/javascripts/views/notes/notes_view.ts index 47158d1bc..182cf5178 100644 --- a/app/assets/javascripts/views/notes/notes_view.ts +++ b/app/assets/javascripts/views/notes/notes_view.ts @@ -169,7 +169,7 @@ class NotesViewCtrl extends PureViewCtrl { } } - /** + /** * Access the current state notes without awaiting any potential reloads * that may be in progress. This is the sync alternative to `async getMostValidNotes` */ @@ -179,7 +179,7 @@ class NotesViewCtrl extends PureViewCtrl { /** * Access the current state notes after waiting for any pending reloads. - * This returns the most up to date notes, but is the asyncronous counterpart + * This returns the most up to date notes, but is the asyncronous counterpart * to `getPossiblyStaleNotes` */ private async getMostValidNotes() { @@ -187,8 +187,8 @@ class NotesViewCtrl extends PureViewCtrl { return this.getPossiblyStaleNotes(); } - /** - * Triggered programatically to create a new placeholder note + /** + * Triggered programatically to create a new placeholder note * when conditions allow for it. This is as opposed to creating a new note * as part of user interaction (pressing the + button). */ @@ -261,7 +261,7 @@ class NotesViewCtrl extends PureViewCtrl { this.application!.getDesktopService().searchText(); this.resetPagination(); - /* Capture db load state before beginning reloadNotes, + /* Capture db load state before beginning reloadNotes, since this status may change during reload */ const dbLoaded = this.application!.isDatabaseLoaded(); this.reloadNotesDisplayOptions(); @@ -305,7 +305,7 @@ class NotesViewCtrl extends PureViewCtrl { /** * Note that reloading display options destroys the current index and rebuilds it, - * so call sparingly. The runtime complexity of destroying and building + * so call sparingly. The runtime complexity of destroying and building * an index is roughly O(n^2). */ private reloadNotesDisplayOptions() {