Added a fix for an undefined param being passed to a load.

This commit is contained in:
John Resig 2007-01-20 04:04:02 +00:00
parent a87ecc44b6
commit 27c08b6544

View file

@ -799,7 +799,7 @@ jQuery.extend({
// Serialize the key/values
for ( var j in a )
// If the value is an array then the key names need to be repeated
if ( a[j].constructor == Array )
if ( a[j] && a[j].constructor == Array )
jQuery.each( a[j], function(){
s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
});