diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-12-06 16:02:54 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-12-06 16:02:54 -0500 |
commit | 166b9d252a025009413eee1584dc364996dcb1c2 (patch) | |
tree | fa90edee9f733919470576995aa3f6e53435bf29 /src | |
parent | 6c2a501de40a5f6b3ad382e2d309e5a10fce04d0 (diff) | |
download | jquery-166b9d252a025009413eee1584dc364996dcb1c2.tar.gz jquery-166b9d252a025009413eee1584dc364996dcb1c2.zip |
Fix #10466. jQuery.param() should treat object-wrapped primitives as primitives.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index bb64b6863..3a384db64 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -818,7 +818,7 @@ function buildParams( prefix, obj, traditional, add ) { } }); - } else if ( !traditional && obj != null && typeof obj === "object" ) { + } else if ( !traditional && jQuery.isPlainObject( obj ) ) { // Serialize object item. for ( var name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); |