Merge branch 'master' of github.com:jquery/jquery
This commit is contained in:
commit
fec02aa5cb
3 changed files with 4 additions and 4 deletions
|
@ -624,7 +624,7 @@ jQuery.extend({
|
|||
// If traditional, encode the "old" way (the way 1.3.2 or older
|
||||
// did it), otherwise encode params recursively.
|
||||
for ( var prefix in a ) {
|
||||
buildParams( traditional ? prefix : prefix.replace(/[\[\]]/g, ""), a[prefix] );
|
||||
buildParams( prefix, a[prefix] );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -635,7 +635,7 @@ jQuery.extend({
|
|||
if ( jQuery.isArray(obj) ) {
|
||||
// Serialize array item.
|
||||
jQuery.each( obj, function( i, v ) {
|
||||
if ( traditional ) {
|
||||
if ( traditional || /\[\]$/.test( prefix ) ) {
|
||||
// Treat each array item as a scalar.
|
||||
add( prefix, v );
|
||||
} else {
|
||||
|
|
|
@ -330,7 +330,7 @@ jQuery.extend({
|
|||
}
|
||||
|
||||
// elem is actually elem.style ... set the style
|
||||
// Using attr for specific style information is now deprecated. Use style insead.
|
||||
// Using attr for specific style information is now deprecated. Use style instead.
|
||||
return jQuery.style( elem, name, value );
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue