Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3863 Visualizzazioni
class FavoriteMenu extends DropdownMenu {
 constructor() {
super(...arguments);
this.model = useModel('searchModel');              this.state.deletedFavorite = false;
}
}

I want to extend the constructor of `FavoriteMenu` .. like adding console.log after super(...arguments)

So the result would be redefining the main constructor in  custom file but the result is obtained in the main file

I've tried `FavoriteMenu.include` and `FavoriteMenu.prototype.cconstructor`but they didn't work


any hint?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 24
7145
0
gen 21
8516
2
giu 22
11531
0
ott 22
571
1
ago 21
4534