aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ajax/ajax.js2
-rw-r--r--src/ajax/ajaxTest.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js
index 87fe73b94..9c94e13d3 100644
--- a/src/ajax/ajax.js
+++ b/src/ajax/ajax.js
@@ -132,7 +132,7 @@ jQuery.fn.extend({
});
// If IE is used, create a wrapper for the XMLHttpRequest object
-if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
+if ( !window.XMLHttpRequest )
XMLHttpRequest = function(){
return new ActiveXObject("Microsoft.XMLHTTP");
};
diff --git a/src/ajax/ajaxTest.js b/src/ajax/ajaxTest.js
index 5eea9b80a..23a76fd49 100644
--- a/src/ajax/ajaxTest.js
+++ b/src/ajax/ajaxTest.js
@@ -70,8 +70,8 @@ test("load(String, Object, Function) - inject without callback", function() {
test("load(String, Object, Function) - check scripts", function() {
expect(7);
stop();
- var testFoo = undefined;
- foobar = null;
+ window.testFoo = undefined;
+ window.foobar = null;
var verifyEvaluation = function() {
ok( foobar == "bar", 'Check if script src was evaluated after load' );
ok( $('#ap').html() == 'bar', 'Check if script evaluation has modified DOM');