تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3884 أدوات العرض
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
مارس 24
7183
0
يناير 21
8546
2
يونيو 22
11548
0
أكتوبر 22
571
1
أغسطس 21
4544