raphamorim / waterfall.js

Tired of use creepy hacks or heavy ways to get a Grid based on Pinterest?
http://raphamorim.io/waterfall.js/
541 stars 70 forks source link

Class selectors in the constructor do not create multiple instances of waterfall #47

Open verybigelephants opened 2 years ago

verybigelephants commented 2 years ago
waterfall('.container');

creates waterfall instance only for the first of the .container classes. It could create instances for all of the selector's elements, so you don't have to do things like this:

$('.container').each(function(){
    waterfall($(this)[0]);
});