Just restore window.JSON in the getJSON test, don't try to delete the value.

This commit is contained in:
jeresig 2009-12-03 11:28:49 -05:00
parent c3b2aa9928
commit f0c32278b4

View File

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