git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just restore window.JSON in the getJSON test, don't try to delete the value.
[jquery.git]
/
test
/
unit
/
ajax.js
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
75ef26c
..
d827a15
100644
(file)
--- a/
test/unit/ajax.js
+++ b/
test/unit/ajax.js
@@
-785,12
+785,9
@@
test("jQuery.getJSON - Using Native JSON", function() {
stop();
jQuery.getJSON(url("data/json.php"), function(json) {
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();
});
});
});
});