Changed document.location to window.location per Ben Alman advice.
This commit is contained in:
parent
a500d33c5d
commit
9fa9a57076
|
@ -1886,7 +1886,7 @@ test("jQuery.ajax - active counter", function() {
|
||||||
test( "jQuery.ajax - Location object as url (#7531)", 1, function () {
|
test( "jQuery.ajax - Location object as url (#7531)", 1, function () {
|
||||||
var success = false;
|
var success = false;
|
||||||
try {
|
try {
|
||||||
var xhr = jQuery.ajax({ url: document.location });
|
var xhr = jQuery.ajax({ url: window.location });
|
||||||
success = true;
|
success = true;
|
||||||
xhr.abort();
|
xhr.abort();
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
Loading…
Reference in a new issue