Commit 9b81529d authored by ThorbenQuast's avatar ThorbenQuast
Browse files

fix #1998

parent f555c9c1
......@@ -61,10 +61,6 @@ var CodeEditor = Emitter.extend({
self.modifiedProcessing = false;
});
} else if (data.mtime > self.mtime && !self.savingProcessing) {
//these line is added for bug finding purposes
/*} else if (Math.abs(data.mtime - self.mtime) > 0.5 && !self.saving_processing) {
console.log(data.mtime);
console.log(self.mtime); */
self.modifiedProcessing = true;
self.view.confirm(
"The file " + self.path + " has changed on disk." +
......@@ -181,7 +177,7 @@ var CodeEditor = Emitter.extend({
path: self.giveAutoSavePath(),
content: self.getContent(),
utf8: true,
watch_id: "code"
watch_id: "code_auto"
}).done(function(res) {
self.savingProcessing = false;
self.mtime = res.mtime;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment