From: Cory Chaplin Date: Wed, 16 Jul 2014 09:24:51 +0000 (+0200) Subject: Fix createQuery X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=58e527c671bc82cd0e86de9db2e85127b6bd90e2;p=KiwiIRC.git Fix createQuery --- diff --git a/client/src/models/network.js b/client/src/models/network.js index 13d0359..0fb5fa7 100644 --- a/client/src/models/network.js +++ b/client/src/models/network.js @@ -238,7 +238,7 @@ // Create a new query panel createQuery: function (nick) { var that = this, - panels = []; + query; // Check if we have the panel already. If not, create it query = that.panels.getByName(nick); @@ -248,7 +248,7 @@ } // In all cases, show the demanded query - that.panels.getByName(nick).view.show(); + query.view.show(); } });