remove globals in tests for compability with ?noglobals, to be enabled by default
This commit is contained in:
parent
0b36b26259
commit
f55fb36e54
2 changed files with 5 additions and 2 deletions
|
@ -763,7 +763,10 @@ test("jQuery.getJSON - Using Native JSON", function() {
|
|||
|
||||
stop();
|
||||
jQuery.getJSON(url("data/json.php"), function(json) {
|
||||
window.JSON = old;
|
||||
if (!old)
|
||||
delete window.JSON
|
||||
else
|
||||
window.JSON = old;
|
||||
equals( json, true, "Verifying return value" );
|
||||
start();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue