From 007c367018fe9df26b6e5c61d9c057fb1d8597f1 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sat, 25 Mar 2023 20:46:02 +0100 Subject: [PATCH] Fix spelling of `occurred` in a couple of comments --- src/display/editor/annotation_editor_layer.js | 2 +- web/pdf_viewer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display/editor/annotation_editor_layer.js b/src/display/editor/annotation_editor_layer.js index 820d77dd1..261412fd5 100644 --- a/src/display/editor/annotation_editor_layer.js +++ b/src/display/editor/annotation_editor_layer.js @@ -449,7 +449,7 @@ class AnnotationEditorLayer { // It can happen when the user starts a drag inside a text editor // and then releases the mouse button outside of it. In such a case // we don't want to create a new editor, hence we check that a pointerdown - // occured on this div previously. + // occurred on this div previously. return; } this.#hadPointerDown = false; diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index 2bcc90d13..6649a3143 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -1966,7 +1966,7 @@ class PDFViewer { /** * Go to the next page, taking scroll/spread-modes into account. - * @returns {boolean} Whether navigation occured. + * @returns {boolean} Whether navigation occurred. */ nextPage() { const currentPageNumber = this._currentPageNumber, @@ -1984,7 +1984,7 @@ class PDFViewer { /** * Go to the previous page, taking scroll/spread-modes into account. - * @returns {boolean} Whether navigation occured. + * @returns {boolean} Whether navigation occurred. */ previousPage() { const currentPageNumber = this._currentPageNumber;