Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Jan 20, 2007
1 parent a87ecc4 commit 27c08b65446568b700606e837a85630d3634f25f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax/ajax.js
@@ -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 ) );
});

0 comments on commit 27c08b6

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