Skip to content
Permalink
Browse files

Simplified check for XMLHttpRequest (saving a few bytes) and fixed lo…

…ad()-test
  • Loading branch information
jzaefferer committed Jan 17, 2007
1 parent b98898d commit 32f688d303ed3cbb942df421c5bb2ed7a5d5244c
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/ajax/ajax.js
  2. +2 −2 src/ajax/ajaxTest.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");
};
@@ -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');

0 comments on commit 32f688d

Please sign in to comment.
You can’t perform that action at this time.