i'got a menu with 92 submenu's and wondered why the performance is so weak on clicking on the responsiveToggle, so i started searching an found that the mutateme event gets fired as many times as there are submenus, and on the drilldown then 92 times the _getMaxDims was executedthis calcs the heights and so on and is very performant, so i debugged it an moved it to the _registerEvents function
big performance improvement
});
}
});
- this.$element.on('mutateme.zf.trigger', this._resize.bind(this));
}
/**
this._bindHandler = this._scrollTop.bind(this);
this.$element.on('open.zf.drilldown hide.zf.drilldown closed.zf.drilldown',this._bindHandler);
}
+ this.$element.on('mutateme.zf.trigger', this._resize.bind(this));
}
/**