Merge pull request #6 from amanbangad/patch-1

Update article.md
This commit is contained in:
Ilya Kantor 2017-06-06 14:30:05 +03:00 committed by GitHub
commit 448c46175c

View file

@ -83,7 +83,7 @@ class User {
Object.assign(User.prototype, sayHiMixin);
// now User can say hi
new User("Dude").sayHi(); // Hi Dude!
new User("Dude").sayHi(); // Hello Dude!
```
Please note that the call to the parent method `super.say()` from `sayHiMixin` looks for the method in the prototype of that mixin, not the class.