Skip to content
Permalink
Browse files

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

… value.
  • Loading branch information
jeresig committed Dec 3, 2009
1 parent c3b2aa9 commit f0c32278b41c91f4ad29ca8371c5935c959802f1
Showing with 3 additions and 6 deletions.
  1. +3 −6 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();
});
});

0 comments on commit f0c3227

Please sign in to comment.
You can’t perform that action at this time.