X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=d827a15300d8110eccc14014f8f9f9c9dc3066aa;hb=f0c32278b41c91f4ad29ca8371c5935c959802f1;hp=75ef26c9834948ed2460f1f8f909a55175e8a38c;hpb=c3b2aa99288a7f7c4920c4add8c1aab272bbff4b;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 75ef26c..d827a15 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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(); }); });