代码被覆盖问题修改

This commit is contained in:
Van 2014-12-23 10:03:03 +08:00
parent 2dface044e
commit 1a1c929bab
1 changed files with 7 additions and 0 deletions

View File

@ -108,7 +108,14 @@ var session = {
} }
} }
// 设置当前编辑器
editors.tabs.setCurrent(id); editors.tabs.setCurrent(id);
for (var c = 0, max = editors.data.length; c < max; c++) {
if (id === editors.data[c].id) {
wide.curEditor = editors.data[c].editor;
break;
}
}
}, },
_initWS: function () { _initWS: function () {
// 用于保持会话,如果该通道断开,则服务器端会销毁会话状态,回收相关资源. // 用于保持会话,如果该通道断开,则服务器端会销毁会话状态,回收相关资源.