Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3867 Ansichten
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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
März 24
7152
0
Jan. 21
8520
2
Juni 22
11534
0
Okt. 22
571
1
Aug. 21
4535