We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f14fac3 commit 426ff46Copy full SHA for 426ff46
1 file changed
ClearBlade.js
@@ -970,6 +970,7 @@ if (!window.console) {
970
*</p>
971
*/
972
ClearBlade.Messaging = function(options, callback){
973
+ var that = this;
974
//roll through the config
975
var conf = {};
976
conf.userName = ClearBlade.appKey;
@@ -982,7 +983,7 @@ if (!window.console) {
982
983
984
var onConnectionLost = function(){
985
alert("connection lost- attempting to reestablish");
- this.client.connect({onSuccess:onConnect, onFailure:onFailure});
986
+ that.client.connect({onSuccess:onConnect, onFailure:onFailure});
987
};
988
989
var onMessageArrived = function(message){
0 commit comments