From 0c02cae6a9e2ab9166f4912d377cf6eca4df3ae2 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Sat, 5 Oct 2013 15:29:18 -0400 Subject: [PATCH] weechat-protocol.js: clean _uia2s() --- js/weechat-protocol.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/weechat-protocol.js b/js/weechat-protocol.js index 672bec7..b80bcac 100644 --- a/js/weechat-protocol.js +++ b/js/weechat-protocol.js @@ -13,13 +13,13 @@ var WeeChatProtocol = function() { }; }; WeeChatProtocol._uia2s = function(uia) { - var _str = []; + var str = []; for (var c = 0; c < uia.length; c++) { - _str[c] = String.fromCharCode(uia[c]); + str.push(String.fromCharCode(uia[c])); } - return decodeURIComponent(escape(_str.join(""))); + return decodeURIComponent(escape(str.join(''))); }; WeeChatProtocol.prototype = { _getType: function() {