HcySunYang / vue-design

📖 master分支:《渲染器》
http://hcysun.me/vue-design/zh/
6k stars 918 forks source link

初识Watcher章节,Watcher构造函数中this.dirty应该是true #300

Open JYDwayne opened 3 years ago

JYDwayne commented 3 years ago
源码中是:
this.cb = cb
this.id = ++uid // uid for batching
this.active = true
this.dirty = this.lazy // for lazy watchers

文中的表述是:
this.cb = cb
this.id = ++uid // uid for batching
this.active = true
this.dirty = this.computed // for computed watchers