Skip to content

Commit

Permalink
Applied patch provided by Taku Sano fixing the compression errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Aug 13, 2006
1 parent 6a47e28 commit 8aca450
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions ajax/ajax.js
Expand Up @@ -210,16 +210,17 @@ jQuery.extend({

// If an array was passed in, assume that it is an array
// of form elements
if ( a.constructor == Array )
if ( a.constructor == Array ) {
// Serialize the form elements
for ( var i = 0; i < a.length; i++ )
s.push( a[i].name + "=" + encodeURIComponent( a[i].value ) );

// Otherwise, assume that it's an object of key/value pairs
else
} else {
// Serialize the key/values
for ( var j in a )
s.push( j + "=" + encodeURIComponent( a[j] ) );
}

// Return the resulting serialization
return s.join("&");
Expand Down
8 changes: 4 additions & 4 deletions event/event.js
Expand Up @@ -1616,7 +1616,7 @@ new function(){
});
};

}
};

// If Mozilla is used
if ( jQuery.browser.mozilla || jQuery.browser.opera ) {
Expand Down Expand Up @@ -1657,9 +1657,9 @@ new function(){
jQuery.ready();
}
}, 10);
} else {
// A fallback to window.onload, that will always work
jQuery.event.add( window, "load", jQuery.ready );
}

// A fallback to window.onload, that will always work
jQuery.event.add( window, "load", jQuery.ready );

}

0 comments on commit 8aca450

Please sign in to comment.