feat(ImageSet): Avoid exposing the images field by adding a getNumImagesMethod (#3179)
This commit is contained in:
parent
95bf3a105b
commit
94bb4c7d42
@ -56,6 +56,8 @@ class ImageSet {
|
||||
}
|
||||
}
|
||||
|
||||
getNumImages = () => this.images.length
|
||||
|
||||
getImage(index) {
|
||||
return this.images[index];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user