Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guard against missing currentGallery element (#124)
When an image is loaded, it can preload the next/previous image with a callback. It's possible that between when the decision to preload is made and the `loadImage` call for preloading happens, the current gallery has been modified and the index to preload is missing, causing the preload callback to error.
- Loading branch information