aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-20 04:04:02 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-20 04:04:02 +0000
commit27c08b65446568b700606e837a85630d3634f25f (patch)
tree2eebff7f906e1c35ab3ddc9b9776ec92f5ee7556 /src
parenta87ecc44b6b4374ad2ebe10e033d45daab9e1369 (diff)
downloadjquery-27c08b65446568b700606e837a85630d3634f25f.tar.gz
jquery-27c08b65446568b700606e837a85630d3634f25f.zip
Added a fix for an undefined param being passed to a load.
Diffstat (limited to 'src')
-rw-r--r--src/ajax/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js
index 9c94e13d3..b872481ab 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 ) );
});