From 27c08b65446568b700606e837a85630d3634f25f Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 20 Jan 2007 04:04:02 +0000 Subject: [PATCH] Added a fix for an undefined param being passed to a load. --- src/ajax/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 9c94e13..b872481 100644 --- a/src/ajax/ajax.js +++ b/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 ) ); }); -- 1.7.10.4