Added a fix for an undefined param being passed to a load.
authorJohn Resig <jeresig@gmail.com>
Sat, 20 Jan 2007 04:04:02 +0000 (04:04 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 20 Jan 2007 04:04:02 +0000 (04:04 +0000)
src/ajax/ajax.js

index 9c94e13..b872481 100644 (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 ) );
                                        });