From c25fb9924910d97c5e4e3487a50e700fa3dc1fbd Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 4 Feb 2014 10:03:38 -0500 Subject: [PATCH] refactor(terminal) addListeners --- lib/client/terminal.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/client/terminal.js b/lib/client/terminal.js index f21d286f..f6ade229 100644 --- a/lib/client/terminal.js +++ b/lib/client/terminal.js @@ -117,16 +117,7 @@ var CloudCmd, Util, DOM, CloudFunc, Terminal; socket.on(CHANNEL, write); Term.on('data', function(data) { - var code; - - if (data) { - code = data.charCodeAt(0); - - /* when back to term - * first simbol wasn't wrote - */ - socket.emit(CHANNEL, data); - } + socket.emit(CHANNEL, data); }); Term.on('resize', function(size) {