From 7caed3b4efd1acd525438fdb702aee04b83f4686 Mon Sep 17 00:00:00 2001 From: Agustin Cautin Date: Thu, 11 Jul 2013 15:19:50 +0200 Subject: Fixed error using undefined variable "fake". --- priv/bullet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'priv') diff --git a/priv/bullet.js b/priv/bullet.js index e43fe75..7cc9fb5 100644 --- a/priv/bullet.js +++ b/priv/bullet.js @@ -48,7 +48,7 @@ } var sendUrl = url.replace('ws:', 'http:').replace('wss:', 'https:'); - + var self = this; $.ajax({ async: false, cache: false, @@ -60,7 +60,7 @@ headers: {'X-Socket-Transport': 'xhrPolling'}, success: function(data){ if (data.length !== 0){ - fake.onmessage({'data': data}); + self.onmessage({'data': data}); } } }); -- cgit v1.2.3