aboutsummaryrefslogtreecommitdiffstats
path: root/src/serialize.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialize.js')
-rw-r--r--src/serialize.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/serialize.js b/src/serialize.js
index 635d5b646..30fcf98cc 100644
--- a/src/serialize.js
+++ b/src/serialize.js
@@ -1,11 +1,12 @@
define( [
"./core",
+ "./core/toType",
"./manipulation/var/rcheckableType",
"./var/isFunction",
"./core/init",
"./traversing", // filter
"./attributes/prop"
-], function( jQuery, rcheckableType, isFunction ) {
+], function( jQuery, toType, rcheckableType, isFunction ) {
"use strict";
@@ -39,7 +40,7 @@ function buildParams( prefix, obj, traditional, add ) {
}
} );
- } else if ( !traditional && jQuery.type( obj ) === "object" ) {
+ } else if ( !traditional && toType( obj ) === "object" ) {
// Serialize object item.
for ( name in obj ) {