Merge pull request #20 from dark-panda/jQuery-2-0-support

jQuery 2.0 renamed onreadystatechange to onload.
This commit is contained in:
JR Boyens 2013-02-04 19:32:18 -08:00
commit a6447b7ecc

View File

@ -70,6 +70,9 @@ function FakeXMLHttpRequest() {
readyState: 0, readyState: 0,
onload: function() {
},
onreadystatechange: function(isTimeout) { onreadystatechange: function(isTimeout) {
}, },
@ -120,6 +123,7 @@ function FakeXMLHttpRequest() {
// uncomment for jquery 1.3.x support // uncomment for jquery 1.3.x support
// jasmine.Clock.tick(20); // jasmine.Clock.tick(20);
this.onload();
this.onreadystatechange(); this.onreadystatechange();
}, },
responseTimeout: function() { responseTimeout: function() {