Skip to content

Commit

Permalink
Fix flXHR plugin to use Function.bind() instead of Function.prependAr…
Browse files Browse the repository at this point in the history
…g().
  • Loading branch information
metajack committed Jan 3, 2011
1 parent 5e6ee02 commit 2a5d175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/strophe.flxhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 2a5d175

Please sign in to comment.