Commit a568a2cf authored by ThorbenQuast's avatar ThorbenQuast
Browse files

code editor: execution of new & empty file

parent 22e88ae4
......@@ -200,7 +200,7 @@ var CodeEditor = Emitter.extend({
var self = this;
this.setupAutoSave();
if (!this.view.isModified() && option != "new") {
if (this.path && !this.view.isModified() && option != "new") {
if ($.isFunction(callback))
callback();
return this;
......
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