Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(data) {
super(data);
Omi.mixIndexToArray(this.data.list);
this.data.currentIndex = 0;
var self = this;
this.data.isCurrent = function () {
return (this.index === self.data.currentIndex) && self.data.active;
}
}
this.data.menus.forEach((item)=> {
Omi.mixIndexToArray(item.list);
})