obj is not iterable
Author: Craigy-Created Oct 19, 2022Updated Dec 16, 2024
After updating this script from 4.1.0 to 5.0.0 without any changes of initialization code, it's now thrown error and doesn't work:
Uncaught TypeError: obj is not iterable
Initialization code:
$('.js-b').each(function () {
console.log($(this));
$(this).imagesLoaded().done(function () {
...
});
});console.log => Object { 0: div.all-b.vertical-b.js-b, context: div.all-b.vertical-b.js-b, length: 1 }
Source: desandro/imagesloaded