Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3858 Zobrazení
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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 24
7134
0
led 21
8513
2
čvn 22
11530
0
říj 22
571
1
srp 21
4534