This commit is contained in:
Liang Ding 2014-10-22 16:55:38 +08:00
parent 438d4fed1b
commit ce1ebda2a6
1 changed files with 6 additions and 0 deletions

View File

@ -496,6 +496,8 @@ var wide = {
}, },
// 构建. // 构建.
build: function () { build: function () {
wide.saveAllFiles();
var currentPath = editors.getCurrentPath(); var currentPath = editors.getCurrentPath();
if (!currentPath) { if (!currentPath) {
return false; return false;
@ -520,6 +522,8 @@ var wide = {
}, },
// 构建并运行. // 构建并运行.
run: function () { run: function () {
wide.saveAllFiles();
var currentPath = editors.getCurrentPath(); var currentPath = editors.getCurrentPath();
if (!currentPath) { if (!currentPath) {
return false; return false;
@ -579,6 +583,8 @@ var wide = {
}); });
}, },
goinstall: function () { goinstall: function () {
wide.saveAllFiles();
var currentPath = editors.getCurrentPath(); var currentPath = editors.getCurrentPath();
if (!currentPath) { if (!currentPath) {
return false; return false;