EDIT: I was using the npm package, which is version 0.2.10, so switched to the cdn one version 0.2.12, that fixed the problem.
Hi,
When I wanna use just a button that opens a set of images into a lightbox, I'm getting the following console error: "Cannot read property 'options' of undefined". Traced it back to the following code in the plugin:
It seems the 'this.options.lazy' isn't defined here, or am I forgetting an options field somewhere?
(If I replace the 'this.options.lazy' here, it all works)
EDIT: I was using the npm package, which is version 0.2.10, so switched to the cdn one version 0.2.12, that fixed the problem.
Hi,
When I wanna use just a button that opens a set of images into a lightbox, I'm getting the following console error: "Cannot read property 'options' of undefined". Traced it back to the following code in the plugin:
It seems the 'this.options.lazy' isn't defined here, or am I forgetting an options field somewhere? (If I replace the 'this.options.lazy' here, it all works)
Javascript behind the button(s):