Merge pull request #2462 from AmosChenYQ/amoschen-classes-correct

modify alternative method in comment of mixins' code example
This commit is contained in:
Ilya Kantor 2021-01-23 09:27:59 +03:00 committed by GitHub
commit 97ef86242f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {
*!*