Skip to content

Commit

Permalink
Changed document.location to window.location per Ben Alman advice.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaubourg committed Dec 10, 2010
1 parent a500d33 commit 9fa9a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit 9fa9a57

Please sign in to comment.