summaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorAgustin Cautin <[email protected]>2013-07-11 15:19:50 +0200
committerAgustin Cautin <[email protected]>2013-07-11 15:19:50 +0200
commit7caed3b4efd1acd525438fdb702aee04b83f4686 (patch)
tree8ee716ff7d7059bd7da1661a51ffeea9fee0ea96 /priv
parent458884c543a99f7c09438fd5989bec0802b42976 (diff)
downloadbullet-7caed3b4efd1acd525438fdb702aee04b83f4686.tar.gz
bullet-7caed3b4efd1acd525438fdb702aee04b83f4686.tar.bz2
bullet-7caed3b4efd1acd525438fdb702aee04b83f4686.zip
Fixed error using undefined variable "fake".
Diffstat (limited to 'priv')
-rw-r--r--priv/bullet.js4
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});
}
}
});