Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

Commit

Permalink
Bind the onload event
Browse files Browse the repository at this point in the history
Prevents "Unable to get property 'splice' of undefined or
null reference" error in IE11
  • Loading branch information
rjmunro committed Feb 27, 2015
1 parent fe2a806 commit bf3184a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion svg4everybody.ie8.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

xhr.open('GET', url_root);

xhr.onload = onload;
xhr.onload = onload.bind(xhr);

xhr.send();
}
Expand Down
2 changes: 1 addition & 1 deletion svg4everybody.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

xhr.open('GET', url_root);

xhr.onload = onload;
xhr.onload = onload.bind(xhr);

xhr.send();
}
Expand Down

0 comments on commit bf3184a

Please sign in to comment.