Just restore window.JSON in the getJSON test, don't try to delete the value.
This commit is contained in:
parent
c3b2aa9928
commit
f0c32278b4
1 changed files with 3 additions and 6 deletions
|
@ -785,9 +785,6 @@ 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)
|
|
||||||
delete window.JSON
|
|
||||||
else
|
|
||||||
window.JSON = old;
|
window.JSON = old;
|
||||||
equals( json, true, "Verifying return value" );
|
equals( json, true, "Verifying return value" );
|
||||||
start();
|
start();
|
||||||
|
|
Loading…
Add table
Reference in a new issue