diff --git a/src/main.ts b/src/main.ts index 9409b76..63bb0c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -57,7 +57,6 @@ export default class PluginsAnnotations extends Plugin { constructor(app:App, manifest:PluginManifest) { super(app, manifest); - // Set up debounced saving functions const timeout_debounced_saving_ms = 100; const { debouncedFct, waitFnc } = debounceFactoryWithWaitMechanism( diff --git a/src/utils.ts b/src/utils.ts index d932059..face64b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -149,7 +149,7 @@ export function debounceFactoryWithWaitMechanism promise = new Promise((resolve, reject) => { // Set the new resolvePromise function resolvePromise = () => { - resolve(); // Resolve to indicate that the previous execution was cancelled + resolve(); // Reference to resolve() used when the previous execution is cancelled }; // Schedule the function to run after the debounce delay