mirror of
https://github.com/jquery/jquery.git
synced 2024-10-05 11:34:18 +00:00
Just restore window.JSON in the getJSON test, don't try to delete the value.
This commit is contained in:
parent
c3b2aa9928
commit
f0c32278b4
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user