modify alternative method in comment of mixins' code example
This commit is contained in:
parent
7bd55a44a1
commit
13a6a7586c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ let sayMixin = {
|
||||||
};
|
};
|
||||||
|
|
||||||
let sayHiMixin = {
|
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() {
|
sayHi() {
|
||||||
*!*
|
*!*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue