Skip to Content
Menú
This question has been flagged
3869 Vistes
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
Descartar
Related Posts Respostes Vistes Activitat
2
de març 24
7157
0
de gen. 21
8525
2
de juny 22
11536
0
d’oct. 22
571
1
d’ag. 21
4537