whoops! removed options into FakeXMLHttpResponse.
This commit is contained in:
parent
83ef1be6e9
commit
5833dd806c
@ -14,7 +14,7 @@ function clearAjaxRequests() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fake XHR for mocking Ajax Requests & Responses
|
// Fake XHR for mocking Ajax Requests & Responses
|
||||||
function FakeXMLHttpRequest(options) {
|
function FakeXMLHttpRequest() {
|
||||||
var xhr = {
|
var xhr = {
|
||||||
requestHeaders: {},
|
requestHeaders: {},
|
||||||
|
|
||||||
@ -58,8 +58,6 @@ function FakeXMLHttpRequest(options) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
jQuery.extend(xhr, options || {});
|
|
||||||
|
|
||||||
return xhr;
|
return xhr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user