Skip to content

Commit

Permalink
Fix demo loading in IE8
Browse files Browse the repository at this point in the history
Ref. #186
  • Loading branch information
drublic committed Oct 4, 2015
1 parent b1c94a1 commit 300c3ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ <h2>Examples</h2>
var i = 0;

var get = function (url, callback) {
var onload = function () {
callback(this.responseText);
};
var request = new XMLHttpRequest();

request.onload = onload;
request.open("get", url, true);
request.open('GET', url, true);
request.onreadystatechange = function () {
if (this.readyState === 4 && this.status === 200){
callback(this.responseText);
}
};
request.send();
};

Expand Down

0 comments on commit 300c3ff

Please sign in to comment.