Permalink
Browse files

Fixed error using undefined variable "fake".

  • Loading branch information...
1 parent 458884c commit 7caed3b4efd1acd525438fdb702aee04b83f4686 @acautin acautin committed Jul 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 priv/bullet.js
View
@@ -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});
}
}
});

0 comments on commit 7caed3b

Please sign in to comment.