From e1d62cdfb3c444dc771273d45a26cc9042c50a02 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 12 Oct 2012 14:17:06 +0100 Subject: [PATCH] this/that in gateway.js --- client/dev/model_gateway.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/dev/model_gateway.js b/client/dev/model_gateway.js index dba907f..b184704 100644 --- a/client/dev/model_gateway.js +++ b/client/dev/model_gateway.js @@ -76,8 +76,8 @@ kiwi.model.Gateway = function () { }); this.socket.on('error', function (e) { - this.trigger("connect_fail", {reason: e}); console.log("kiwi.gateway.socket.on('error')", {reason: e}); + that.trigger("connect_fail", {reason: e}); }); this.socket.on('connecting', function (transport_type) { @@ -103,7 +103,7 @@ kiwi.model.Gateway = function () { }); this.socket.on('too_many_connections', function () { - this.trigger("connect_fail", {reason: 'too_many_connections'}); + that.trigger("connect_fail", {reason: 'too_many_connections'}); }); this.socket.on('irc', function (data, callback) { -- 2.25.1