diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 17:51:38 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2009-09-15 17:51:38 +0000 |
commit | f55fb36e54eb82b112fa7af2c9b2c28c3a1c38cf (patch) | |
tree | b5ddfdbafb6b3bf5a55a84ac46e095dc12f15656 /test/unit/ajax.js | |
parent | 0b36b26259bb1384d8a6d7d55d8738082b96c304 (diff) | |
download | jquery-f55fb36e54eb82b112fa7af2c9b2c28c3a1c38cf.tar.gz jquery-f55fb36e54eb82b112fa7af2c9b2c28c3a1c38cf.zip |
remove globals in tests for compability with ?noglobals, to be enabled by default
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 564f69267..f7c67b7be 100644 --- 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(); }); |