update components
This commit is contained in:
parent
84945cabc4
commit
ab2d2eaf94
111 changed files with 4302 additions and 3100 deletions
|
@ -6,7 +6,9 @@ define( [
|
|||
"./attributes/prop"
|
||||
], function( jQuery, rcheckableType ) {
|
||||
|
||||
var r20 = /%20/g,
|
||||
"use strict";
|
||||
|
||||
var
|
||||
rbracket = /\[\]$/,
|
||||
rCRLF = /\r?\n/g,
|
||||
rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
|
||||
|
@ -55,18 +57,17 @@ function buildParams( prefix, obj, traditional, add ) {
|
|||
jQuery.param = function( a, traditional ) {
|
||||
var prefix,
|
||||
s = [],
|
||||
add = function( key, value ) {
|
||||
add = function( key, valueOrFunction ) {
|
||||
|
||||
// If value is a function, invoke it and return its value
|
||||
value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
|
||||
s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
|
||||
// If value is a function, invoke it and use its return value
|
||||
var value = jQuery.isFunction( valueOrFunction ) ?
|
||||
valueOrFunction() :
|
||||
valueOrFunction;
|
||||
|
||||
s[ s.length ] = encodeURIComponent( key ) + "=" +
|
||||
encodeURIComponent( value == null ? "" : value );
|
||||
};
|
||||
|
||||
// Set traditional to true for jQuery <= 1.3.2 behavior.
|
||||
if ( traditional === undefined ) {
|
||||
traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
|
||||
}
|
||||
|
||||
// If an array was passed in, assume that it is an array of form elements.
|
||||
if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
|
||||
|
||||
|
@ -85,7 +86,7 @@ jQuery.param = function( a, traditional ) {
|
|||
}
|
||||
|
||||
// Return the resulting serialization
|
||||
return s.join( "&" ).replace( r20, "+" );
|
||||
return s.join( "&" );
|
||||
};
|
||||
|
||||
jQuery.fn.extend( {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue