miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Uncaught TypeError: controller.updateEntries is not a function #303

Closed Jmcma closed 5 years ago

Jmcma commented 5 years ago

Hi,

I have this error that I cannot figure out why: Uncaught TypeError: controller.updateEntries is not a function at HTMLDivElement. (jquery.justifiedGallery.js:80) at Function.each (jquery-3.3.1.js:354) at jQuery.fn.init.each (jquery-3.3.1.js:189) at jQuery.fn.init.$.fn.justifiedGallery (jquery.justifiedGallery.js:53) at (index):193

Can I get some help?

jefftucker1952 commented 5 years ago

It sounds like you're using the uncompiled source code, instead of the compiled distribution. From the download package, don't use src/js/jquery.justifiedGallery.js - use dist/js/jquery.justifiedGallery.js.