Skip to content

Commit

Permalink
Replace non-standard prependArg with bind
Browse files Browse the repository at this point in the history
bind is not supported on IE8, but we have it in the Strophe.js polyfills.

More info here: https://groups.google.com/forum/#!topic/strophe/TkEpQQK37PM
  • Loading branch information
jcbrand committed Oct 9, 2015
1 parent e3ee3ae commit 56a3d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iexdomain/iexdomain.js
Expand Up @@ -8,7 +8,7 @@ Strophe.addConnectionPlugin('iexdomain', {
xhr.setRequestHeader = function () {} ;
xhr.readyState = 0;

xhr.onreadystatechange = this.func.prependArg(this);
xhr.onreadystatechange = this.func.bind(undefined, this);
xhr.onerror = function() {
xhr.readyState = 4;
xhr.status = 500;
Expand Down

0 comments on commit 56a3d26

Please sign in to comment.