From: jeresig Date: Thu, 3 Dec 2009 16:28:49 +0000 (-0500) Subject: Just restore window.JSON in the getJSON test, don't try to delete the value. X-Git-Tag: 1.4a1~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f0c32278b41c91f4ad29ca8371c5935c959802f1;p=jquery.git Just restore window.JSON in the getJSON test, don't try to delete the value. --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 75ef26c98..d827a1530 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(); }); });