[+] Encapsulate isLoaded()

This commit is contained in:
Hykilpikonna
2019-12-24 22:39:28 -05:00
parent 9f0d82ce7d
commit 38212a070b
+5
View File
@@ -61,6 +61,11 @@ class Artwork
img.src = this.imgFull;
return this;
}
get isLoaded()
{
return this.width != undefined && this.height != undefined;
}
}
@Component({components: {PhotoSwipper}})