]> source.dussan.org Git - jquery.git/commitdiff
Changed document.location to window.location per Ben Alman advice.
authorjaubourg <aubourg.julian@gmail.com>
Fri, 10 Dec 2010 06:00:06 +0000 (07:00 +0100)
committerjaubourg <aubourg.julian@gmail.com>
Fri, 10 Dec 2010 06:00:06 +0000 (07:00 +0100)
test/unit/ajax.js

index c01edc04406c1b45827027bed6ab8f06d411f30b..d0f2e435cde61714777e9a58e2ef9e3473d6f6ca 100644 (file)
@@ -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) {}