Closed ggoforth closed 8 years ago
Can confirm, _modal
is indeed undefined if you never click on an image. I can submit a pull request tonight, but I think it's just going to include a:
if (!_modal) return
to avoid calling remove
if no _modal
exists.
Fixed with latest update
Can confirm, thanks @pedroabreu!
The specific error is:
In doing some quick digging through the source (well organized, BTW) I think it might be related to the modal code for the image click handling.
So, if I:
I can debug more and put together an example, but I think the issue is with line 452 in ion-gallery.js. When no image is clicked on,
_modal
is undefined, thus callingremove
yields the error.