Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix flXHR plugin to use Function.bind() instead of Function.prependAr…

…g().
  • Loading branch information...
commit 2a5d175cf8a857c948d5d4ff095d8262c4d78f7e 1 parent 5e6ee02
@metajack metajack authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugins/strophe.flxhr.js
View
2  plugins/strophe.flxhr.js
@@ -24,7 +24,7 @@ Strophe.addConnectionPlugin('flxhr', {
"flXHR connection error");
conn._onDisconnectTimeout();
}});
- xhr.onreadystatechange = this.func.prependArg(this);
+ xhr.onreadystatechange = this.func.bind(null, this);
return xhr;
};
Please sign in to comment.
Something went wrong with that request. Please try again.