/list response now shows in a new tab
[KiwiIRC.git] / node / app.js
index a8a9999621718dcba40ea8d909b5c966edd268a4..6025dd41a62a7bfd6f632d8f27142b224e87ddff 100644 (file)
@@ -1,4 +1,4 @@
-/*jslint continue: true, forin: true, regexp: true, undef: false, node: true, nomen: true, plusplus: true, maxerr: 50, indent: 4 */
+/*jslint sloppy: true, continue: true, forin: true, regexp: true, undef: false, node: true, nomen: true, plusplus: true, maxerr: 50, indent: 4 */
 /*globals kiwi_root */
 var tls = null;
 var net = null;
@@ -197,7 +197,7 @@ this.parseIRCMessage = function (websocket, ircSocket, data) {
                 channel = parts[1];
                 num_users = parts[2];
                 modes = msg.trailing.split(' ', 1);
-                topic = msg.trailing.substring(msg.trailing.indexOf(' ')+1);
+                topic = msg.trailing.substring(msg.trailing.indexOf(' ') + 1);
 
                 websocket.sendClientEvent('list_channel', {
                     server: '',
@@ -504,11 +504,12 @@ this.httpHandler = function (request, response) {
             if (kiwi.cache.alljs === '') {
                 public_http_path = kiwi.kiwi_root + '/' + kiwi.config.public_http;
 
+                               min.underscore = fs.readFileSync(public_http_path + 'js/underscore.min.js');
                 min.util = fs.readFileSync(public_http_path + 'js/util.js');
                 min.gateway = fs.readFileSync(public_http_path + 'js/gateway.js');
                 min.front = fs.readFileSync(public_http_path + 'js/front.js');
                 min.iscroll = fs.readFileSync(public_http_path + 'js/iscroll.js');
-                min.ast = jsp.parse(min.util + min.gateway + min.front + min.iscroll);
+                min.ast = jsp.parse(min.underscore + min.util + min.gateway + min.front + min.iscroll);
                 min.ast = pro.ast_mangle(min.ast);
                 min.ast = pro.ast_squeeze(min.ast);
                 min.final_code = pro.gen_code(min.ast);