Mixins with Plain JavaScript

preview_player
Показать описание
How to add methods to a ES 6 class without multiple inheritance.

Рекомендации по теме
Комментарии
Автор

Exactly what I was looking for. Thanks!

ПетърТодоров-оф
Автор

I like the nifty trick with dynamic extension - great for factories but is it still a mix-in if you modify the prototype chain?

seandougan
Автор

Thanks for the great tutorial! can we extend Mixin using *include* instead of using *extend* ? Since I would like to edit a method in a widget, but I also want to edit a method in Mixin class ...

ChillVerses
Автор

I didn't understand anything. Nothing is explained. You just wrote the code and that's it.

nanoberzerk
join shbcf.ru