Permalink
Browse files

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

…g().
  • Loading branch information...
1 parent 5e6ee02 commit 2a5d175cf8a857c948d5d4ff095d8262c4d78f7e @metajack metajack committed Jan 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/strophe.flxhr.js
View
@@ -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;
};

0 comments on commit 2a5d175

Please sign in to comment.