git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remove globals in tests for compability with ?noglobals, to be enabled by default
[jquery.git]
/
test
/
unit
/
ajax.js
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
564f692
..
f7c67b7
100644
(file)
--- a/
test/unit/ajax.js
+++ b/
test/unit/ajax.js
@@
-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();
});