Merge pull request #20 from dark-panda/jQuery-2-0-support
jQuery 2.0 renamed onreadystatechange to onload.
This commit is contained in:
commit
a6447b7ecc
@ -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