Merge pull request #2462 from AmosChenYQ/amoschen-classes-correct
modify alternative method in comment of mixins' code example
This commit is contained in:
commit
97ef86242f
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ let sayMixin = {
|
|||
};
|
||||
|
||||
let sayHiMixin = {
|
||||
__proto__: sayMixin, // (or we could use Object.create to set the prototype here)
|
||||
__proto__: sayMixin, // (or we could use Object.setPrototypeOf to set the prototype here)
|
||||
|
||||
sayHi() {
|
||||
*!*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue