Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upon troubleshooting, it was found that when an image throws an error, this inside the callback refers to the image element and not the JustifiedGallery instance. This causes a TypeError because this.resetImgSrc is not a function in the context of the image element. To resolve this, I ensured that this correctly refers to the JustifiedGallery instance by using .bind(this) on the callback function.
- Loading branch information