Commit 27c08b65 authored by John Resig's avatar John Resig

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

parent a87ecc44
...@@ -799,7 +799,7 @@ jQuery.extend({ ...@@ -799,7 +799,7 @@ jQuery.extend({
// Serialize the key/values // Serialize the key/values
for ( var j in a ) for ( var j in a )
// If the value is an array then the key names need to be repeated // 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(){ jQuery.each( a[j], function(){
s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) ); s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment