style: trim whitespace

This commit is contained in:
Baptiste Grob
2020-08-14 16:38:58 +02:00
parent 4e86a2e1cb
commit 11ed5bc0b5
3 changed files with 11 additions and 11 deletions

View File

@@ -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. * editor's note with an empty one.
*/ */
createEditor(title?: string) { createEditor(title?: string) {
@@ -222,8 +222,8 @@ export class AppState {
} }
async notifyEvent(eventName: AppStateEvent, data?: any) { 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 * * controllers a chance to construct before propogting any events *
*/ */
return new Promise((resolve) => { return new Promise((resolve) => {

View File

@@ -203,7 +203,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
this.showAllChangesSavedStatus(); this.showAllChangesSavedStatus();
} }
} else { } else {
this.showSavingStatus(); this.showSavingStatus();
} }
} }
}); });
@@ -515,7 +515,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
}, syncDebouceMs); }, syncDebouceMs);
} }
showSavingStatus() { showSavingStatus() {
this.setStatus( this.setStatus(
{ message: "Saving…" }, { message: "Saving…" },
false false

View File

@@ -169,7 +169,7 @@ class NotesViewCtrl extends PureViewCtrl {
} }
} }
/** /**
* Access the current state notes without awaiting any potential reloads * Access the current state notes without awaiting any potential reloads
* that may be in progress. This is the sync alternative to `async getMostValidNotes` * 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. * 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` * to `getPossiblyStaleNotes`
*/ */
private async getMostValidNotes() { private async getMostValidNotes() {
@@ -187,8 +187,8 @@ class NotesViewCtrl extends PureViewCtrl {
return this.getPossiblyStaleNotes(); 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 * when conditions allow for it. This is as opposed to creating a new note
* as part of user interaction (pressing the + button). * as part of user interaction (pressing the + button).
*/ */
@@ -261,7 +261,7 @@ class NotesViewCtrl extends PureViewCtrl {
this.application!.getDesktopService().searchText(); this.application!.getDesktopService().searchText();
this.resetPagination(); this.resetPagination();
/* Capture db load state before beginning reloadNotes, /* Capture db load state before beginning reloadNotes,
since this status may change during reload */ since this status may change during reload */
const dbLoaded = this.application!.isDatabaseLoaded(); const dbLoaded = this.application!.isDatabaseLoaded();
this.reloadNotesDisplayOptions(); this.reloadNotesDisplayOptions();
@@ -305,7 +305,7 @@ class NotesViewCtrl extends PureViewCtrl {
/** /**
* Note that reloading display options destroys the current index and rebuilds it, * 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). * an index is roughly O(n^2).
*/ */
private reloadNotesDisplayOptions() { private reloadNotesDisplayOptions() {