app = window.app || {}; /** * @requires $ jQuery * @requires $.fn.royalSlider Royal Slider */ app.Sponsor = qs.createObject(); app.Sponsor.prototype = { initialize: function (options) { this.options = $.extend(true, { containerId: undefined, swiper: { autoplay: { disableOnInteraction: false }, loop: true } }, options); this.initSwiper(); return this; }, initSwiper: function () { this.swiper = new Swiper('#' + this.options.containerId, this.options.swiper); return this; } };