jQuery 2.0 renamed onreadystatechange to onload.
This commit is contained in:
parent
f75b12606a
commit
ede994d75b
@ -70,6 +70,9 @@ function FakeXMLHttpRequest() {
|
||||
|
||||
readyState: 0,
|
||||
|
||||
onload: function() {
|
||||
},
|
||||
|
||||
onreadystatechange: function(isTimeout) {
|
||||
},
|
||||
|
||||
@ -120,6 +123,7 @@ function FakeXMLHttpRequest() {
|
||||
// uncomment for jquery 1.3.x support
|
||||
// jasmine.Clock.tick(20);
|
||||
|
||||
this.onload();
|
||||
this.onreadystatechange();
|
||||
},
|
||||
responseTimeout: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user