diff options
Diffstat (limited to 'priv')
-rw-r--r-- | priv/bullet.js | 4 |
1 files changed, 2 insertions, 2 deletions
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}); } } }); |