[+] Encapsulate isLoaded()
This commit is contained in:
@@ -61,6 +61,11 @@ class Artwork
|
||||
img.src = this.imgFull;
|
||||
return this;
|
||||
}
|
||||
|
||||
get isLoaded()
|
||||
{
|
||||
return this.width != undefined && this.height != undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@Component({components: {PhotoSwipper}})
|
||||
|
||||
Reference in New Issue
Block a user