Skip to content

Commit

Permalink
Just restore window.JSON in the getJSON test, don't try to delete the…
Browse files Browse the repository at this point in the history
… value.
  • Loading branch information
jeresig committed Dec 3, 2009
1 parent c3b2aa9 commit f0c3227
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/unit/ajax.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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();
}); });
}); });


Expand Down

0 comments on commit f0c3227

Please sign in to comment.