docs: edit class-extends

This commit is contained in:
ruanyf
2018-06-21 16:40:25 +08:00
parent 06fac98bb1
commit 19e1974afe
+1 -1
View File
@@ -713,7 +713,7 @@ function mix(...mixins) {
class Mix {}
for (let mixin of mixins) {
copyProperties(Mix, mixin); // 拷贝实例属性
copyProperties(Mix.prototype, new mixin()); // 拷贝实例属性
copyProperties(Mix.prototype, mixin.prototype); // 拷贝原型属性
}