This commit is contained in:
Liang Ding 2014-08-22 14:06:47 +08:00
parent 356a54c762
commit 12b8f780d9
3 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,7 @@ var editors = {
CodeMirror.commands.autocompleteAfterDot = function(cm) {
var cur = cm.getCursor();
console.log(cm.getRange(CodeMirror.Pos(cur.line, cur.ch - 1), cur));
// console.log(cm.getRange(CodeMirror.Pos(cur.line, cur.ch - 1), cur));
// var token = cm.getTokenAt(cm.getCursor());

View File

@ -1,4 +1,4 @@
var outputWS = new WebSocket(config.channel.editor + '/output/ws');
var outputWS = new WebSocket(config.channel.output + '/output/ws');
outputWS.onopen = function() {
console.log('[output onopen] connected');
};

View File

@ -59,7 +59,8 @@
var config = {
channel: {
editor: '{{.Wide.EditorChannel}}',
shell: '{{.Wide.ShellChannel}}'
shell: '{{.Wide.ShellChannel}}',
output: '{{.Wide.OutputChannel}}'
}
};
</script>