fix eslint error

This commit is contained in:
lichengyin 2015-11-12 18:32:10 +08:00
parent a97840397a
commit 07a3e59e3d
3 changed files with 4 additions and 4 deletions

View File

@ -497,7 +497,7 @@ export default class {
let reloadInstance = this.getReloadInstance(outPath);
this.compileCallback = changedFiles => {
reloadInstance.clearFilesCache(changedFiles);
}.bind(this);
};
let WatchCompile = require('./util/watch_compile.js');
let instance = new WatchCompile(srcPath, outPath, log, this.compileCallback);

View File

@ -157,6 +157,6 @@ export default class extends think.base {
}
}catch(e){}
return exportsObj;
}
};
}
}

View File

@ -123,8 +123,8 @@ export default class extends think.base {
}
});
//notify auto reload service to clear file cache
if(changedFiles.length){
this.callback && this.callback(changedFiles);
if(changedFiles.length && this.callback){
this.callback(changedFiles);
}
setTimeout(this.compile.bind(this), 100);
}