feat(ImageSet): Avoid exposing the images field by adding a getNumImagesMethod (#3179)

This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2023-02-16 13:07:12 -05:00
1 parent 95bf3a105b
commit 94bb4c7d42
1 file changed
+2
+2
View File
@@ -56,6 +56,8 @@ class ImageSet {
}
}
getNumImages = () => this.images.length
getImage(index) {
return this.images[index];
}