Client: /part command fix
authorDarren <darren@darrenwhitlen.com>
Fri, 28 Feb 2014 22:50:04 +0000 (22:50 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 28 Feb 2014 22:50:04 +0000 (22:50 +0000)
client/src/models/application.js

index bc60a95be33d6a0023fbe4773fe91e1d23e12cbe..3a09516bb8a0d4945701f5a72f0225d323512d0e 100644 (file)
     }\r
 \r
     function partCommand (ev) {\r
+        var that = this;\r
+\r
         if (ev.params.length === 0) {\r
             this.connections.active_connection.gateway.part(_kiwi.app.panels().active.get('name'));\r
         } else {\r
             _.each(ev.params, function (channel) {\r
-                this.connections.active_connection.gateway.part(channel);\r
+                that.connections.active_connection.gateway.part(channel);\r
             });\r
         }\r
     }\r