Without this adjustment the constructor of ResponsiveAccordionTabs always returns the transformed plugin (Accordion/Tab) and not ResponsiveAccordionTabs.
This behavior is mostly only needed if the plugin gets initialized automatically.
Otherwise all own methods of that plugin don't make much sense.
// For each plugin found, initialize it
$elem.each(function() {
var $el = $(this),
- opts = {};
-
+ opts = { reflow: true };
+
if($el.attr('data-options')){
var thing = $el.attr('data-options').split(';').forEach(function(e, i){
var opt = e.split(':').map(function(el){ return el.trim(); });
class ResponsiveAccordionTabs extends Plugin{
constructor(element, options) {
super(element, options);
- return this.storezfData || this;
+ return this.options.reflow && this.storezfData || this;
}
/**