From 8693757e455d45c8ecc47f620f580be9f6baaa93 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 28 Feb 2014 22:50:04 +0000 Subject: [PATCH] Client: /part command fix --- client/src/models/application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/models/application.js b/client/src/models/application.js index bc60a95..3a09516 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -734,11 +734,13 @@ } function partCommand (ev) { + var that = this; + if (ev.params.length === 0) { this.connections.active_connection.gateway.part(_kiwi.app.panels().active.get('name')); } else { _.each(ev.params, function (channel) { - this.connections.active_connection.gateway.part(channel); + that.connections.active_connection.gateway.part(channel); }); } } -- 2.25.1