Codeinwp / Nivo-Lightbox-jQuery

A simple, flexible, responsive, retina-ready jQuery lightbox plugin.
http://dev7studios.com/nivo-lightbox
MIT License
157 stars 87 forks source link

Not compatible with jQuery 3 #67

Open chasegiunta opened 7 years ago

chasegiunta commented 7 years ago

You get fun errors like u.error is not a function

bDrwx commented 6 years ago

+1 I got this error when i tried to use nivoLightbox with jQuery 3 in Rails 5.1 app.

jquery3.self-5af507e253c37e9c9dcf65064fc3f93795e6e28012780579975a4d709f4074ad.js?body=1:9858 Uncaught TypeError: Cannot read property 'indexOf' of undefined at jQuery.fn.init.jQuery.fn.load (jquery3.self-5af507e253c37e9c9dcf65064fc3f93795e6e28012780579975a4d709f4074ad.js?body=1:9858) at HTMLImageElement.<anonymous> (nivo-lightbox.self-30caad38f06863557b2f3280417acba4b29b70542fefd73eebe2c8230637b1e2.js?body=1:191) at Function.each (jquery3.self-5af507e253c37e9c9dcf65064fc3f93795e6e28012780579975a4d709f4074ad.js?body=1:355) at jQuery.fn.init.each (jquery3.self-5af507e253c37e9c9dcf65064fc3f93795e6e28012780579975a4d709f4074ad.js?body=1:190) at NivoLightbox.processContent (nivo-lightbox.self-30caad38f06863557b2f3280417acba4b29b70542fefd73eebe2c8230637b1e2.js?body=1:190) at NivoLightbox.showLightbox (nivo-lightbox.self-30caad38f06863557b2f3280417acba4b29b70542fefd73eebe2c8230637b1e2.js?body=1:92) at HTMLAnchorElement.<anonymous> (nivo-lightbox.self-30caad38f06863557b2f3280417acba4b29b70542fefd73eebe2c8230637b1e2.js?body=1:55) at HTMLAnchorElement.dispatch (jquery3.self-5af507e253c37e9c9dcf65064fc3f93795e6e28012780579975a4d709f4074ad.js?body=1:5184) at HTMLAnchorElement.elemData.handle (jquery3.self-5af507e253c37e9c9dcf65064fc3f93795e6e28012780579975a4d709f4074ad.js?body=1:4992)

DeNelo commented 5 years ago

I get

Uncaught TypeError: img.error is not a function
    at NivoLightbox.processContent (nivo-lightbox.js:194)
    at NivoLightbox.showLightbox (nivo-lightbox.js:92)
    at HTMLAnchorElement.<anonymous> (nivo-lightbox.js:55)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.y.handle (jquery.min.js:3)
aaronfranke commented 5 years ago

I am also unable to use Nivo Lightbox with jQuery 3.