Skip to Content
Menu
This question has been flagged
3035 Views
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
Discard
Related Posts Replies Views Activity
2
Mar 24
5433
0
Jan 21
6727
2
Jun 22
10042
0
Oct 22
571
1
Aug 21
3496