mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Changed document.location to window.location per Ben Alman advice.
This commit is contained in:
@@ -1886,7 +1886,7 @@ test("jQuery.ajax - active counter", function() {
|
||||
test( "jQuery.ajax - Location object as url (#7531)", 1, function () {
|
||||
var success = false;
|
||||
try {
|
||||
var xhr = jQuery.ajax({ url: document.location });
|
||||
var xhr = jQuery.ajax({ url: window.location });
|
||||
success = true;
|
||||
xhr.abort();
|
||||
} catch (e) {}
|
||||
|
||||
Reference in New Issue
Block a user