Reputation: 91
When I try to use masonry js I get this error:
Uncaught TypeError: Object [object Object] has no method 'imagesLoaded'
I'm loading this scripts:
.jquery 1.10.2 .twitter bootstrap 2.3.2 .masonry 3.0.3
the scripts are loaded in that order and they load ok, I've checked.
I also tried removing the bootstrap js, but the error persisted.
the javascript that initializes masonry:
$(function(){
var $container = $('#container');
$container.imagesLoaded( function(){
$container.masonry({
itemSelector : '.masonryImage'
});
});
});
Upvotes: 2
Views: 6436