johnpolacek / imagefill.js

The jQuery plugin for making images fill their containers (and be centered)
http://johnpolacek.github.io/imagefill.js/
609 stars 89 forks source link

Object [object Object] has no method 'done' #2

Open pnpetroff opened 10 years ago

pnpetroff commented 10 years ago

I'm trying to get imagefill.js to run. I'm using imagesLoaded.js from here: http://desandro.github.io/imagesloaded/imagesloaded.pkgd.min.js

the problem is that when I attach imagefill() to a selector I get:

Object [object Object] has no method 'done'

The line that gives the error is: $container.imagesLoaded().done(function($img) {

Is imageFill.js not working with the latest imagesLoaded version?