updated npm modules
This commit is contained in:
6
node_modules/jquery/src/serialize.js
generated
vendored
6
node_modules/jquery/src/serialize.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
define( [
|
||||
"./core",
|
||||
"./core/toType",
|
||||
"./manipulation/var/rcheckableType",
|
||||
"./var/rcheckableType",
|
||||
"./var/isFunction",
|
||||
"./core/init",
|
||||
"./traversing", // filter
|
||||
@@ -70,6 +70,10 @@ jQuery.param = function( a, traditional ) {
|
||||
encodeURIComponent( value == null ? "" : value );
|
||||
};
|
||||
|
||||
if ( a == null ) {
|
||||
return "";
|
||||
}
|
||||
|
||||
// If an array was passed in, assume that it is an array of form elements.
|
||||
if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user