428568 (3) [Avatar] Offline
#1
The listing 5.25 has an error (in page 112).

watch() {
this.stopWatching();    
if (!this.filePath) { return this; }    
this.watcher = fs.watch(this.file, (event) => {
if (event === 'change') { this.open(this.filePath); }     });
return this;
}


this.file
in line 4 should be
this.filePath
. Otherwise, readers will meet error when running the program. Thanks.
Steve Kinney (33) [Avatar] Offline
#2
Good catch! I fixed it in the manuscript. Not sure it will make the next MEAP release, but it should ship soon!