コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3885 ビュー
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?

アバター
破棄
関連投稿 返信 ビュー 活動
2
3月 24
7183
0
1月 21
8546
2
6月 22
11548
0
10月 22
571
1
8月 21
4544