aboutsummaryrefslogtreecommitdiffstats
path: root/src/serialize.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialize.js')
-rw-r--r--src/serialize.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialize.js b/src/serialize.js
index 35dcf04f9..2e28ce1e0 100644
--- a/src/serialize.js
+++ b/src/serialize.js
@@ -17,7 +17,7 @@ var
function buildParams( prefix, obj, traditional, add ) {
var name;
- if ( jQuery.isArray( obj ) ) {
+ if ( Array.isArray( obj ) ) {
// Serialize array item.
jQuery.each( obj, function( i, v ) {
@@ -69,7 +69,7 @@ jQuery.param = function( a, 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 ) ) ) {
+ if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
// Serialize the form elements
jQuery.each( a, function() {
@@ -115,7 +115,7 @@ jQuery.fn.extend( {
return null;
}
- if ( jQuery.isArray( val ) ) {
+ if ( Array.isArray( val ) ) {
return jQuery.map( val, function( val ) {
return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
} );