/**
Updates the carousel,
useful if you resize the gallery and want to re-check if the carousel nav is needed.
@returns Instance
*/
updateCarousel : function() {
this._carousel.update();
return this;
},
// the plugin initializer
$.fn.galleria = function( options ) {
return this.each(function() {
var gallery = new Galleria();
gallery.init( this, options );
});
};
// Expose
window.Galleria = Galleria;
var gallery = new Galleria();
gallery.init( $('#galleria'));
gallery.updateCarousel();