Closed VarinderS closed 9 years ago
Ability to add elements after initialization.
var imager = new Imager(options); imager.add(anotherDomElement); imager.add('.element');
Possible use case: loading slider images on demand.
var imager = new Imager(options); var slider = new SomeSlider(options); slider.on('slide', function(element) { imager.add(element); });
Nice use case :-)
I guess the constructor and the add method should share the same code/element signature. The constructor is doing the same thing except it adds elements to an empty array.
add
Ability to add elements after initialization.
Possible use case: loading slider images on demand.