Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 32f688d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ajax/ajax.js
Expand Up @@ -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");
};
Expand Down
4 changes: 2 additions & 2 deletions src/ajax/ajaxTest.js
Expand Up @@ -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');
Expand Down

0 comments on commit 32f688d

Please sign in to comment.