Commit f0c32278 authored by jeresig's avatar jeresig

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

parent c3b2aa99
...@@ -785,12 +785,9 @@ test("jQuery.getJSON - Using Native JSON", function() { ...@@ -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();
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment