From e8c3048404a18602b0d43edc433dd65afc5f53c3 Mon Sep 17 00:00:00 2001 From: Justin Poehnelt Date: Wed, 27 Oct 2021 13:51:17 -0600 Subject: [PATCH] style: fix lint warnings --- src/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 45532597..e8fc2f3a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -185,6 +185,7 @@ export interface LoaderOptions { * ``` */ export class Loader { + private static instance: Loader; /** * See [[LoaderOptions.version]] */ @@ -244,7 +245,6 @@ export class Loader { private done = false; private loading = false; private onerrorEvent: ErrorEvent; - private static instance: Loader; private errors: ErrorEvent[] = []; /** @@ -363,6 +363,13 @@ export class Loader { return url; } + public deleteScript(): void { + const script = document.getElementById(this.id); + if (script) { + script.remove(); + } + } + /** * Load the Google Maps JavaScript API script and return a Promise. */ @@ -421,13 +428,6 @@ export class Loader { document.head.appendChild(script); } - public deleteScript(): void { - const script = document.getElementById(this.id); - if (script) { - script.remove(); - } - } - /** * Reset the loader state. */