X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=d827a15300d8110eccc14014f8f9f9c9dc3066aa;hb=c7d640f000c6945a238aa99952b4b1b378775d7e;hp=75ef26c9834948ed2460f1f8f909a55175e8a38c;hpb=c08474580caa44d2b5f32be54c0d884832bbd1c3;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(); }); });