From 38212a070b35fb0e6e9565dd8380f47dd7cbabea Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 24 Dec 2019 22:39:28 -0500 Subject: [PATCH] [+] Encapsulate isLoaded() --- src/App.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.ts b/src/App.ts index 6f1c5bb..19b34a5 100644 --- a/src/App.ts +++ b/src/App.ts @@ -61,6 +61,11 @@ class Artwork img.src = this.imgFull; return this; } + + get isLoaded() + { + return this.width != undefined && this.height != undefined; + } } @Component({components: {PhotoSwipper}})