]> source.dussan.org Git - jquery.git/commitdiff
Just restore window.JSON in the getJSON test, don't try to delete the value.
authorjeresig <jeresig@gmail.com>
Thu, 3 Dec 2009 16:28:49 +0000 (11:28 -0500)
committerjeresig <jeresig@gmail.com>
Thu, 3 Dec 2009 16:28:49 +0000 (11:28 -0500)
test/unit/ajax.js

index 75ef26c9834948ed2460f1f8f909a55175e8a38c..d827a15300d8110eccc14014f8f9f9c9dc3066aa 100644 (file)
@@ -785,12 +785,9 @@ test("jQuery.getJSON - Using Native JSON", function() {
 
        stop();
        jQuery.getJSON(url("data/json.php"), function(json) {
-               if (!old)
-                       delete window.JSON
-               else
-                       window.JSON = old;
-         equals( json, true, "Verifying return value" );
-         start();
+               window.JSON = old;
+               equals( json, true, "Verifying return value" );
+               start();
        });
 });