aboutsummaryrefslogtreecommitdiffstats
path: root/src/serialize.js
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2013-08-15 14:15:49 -0400
committerTimmy Willison <timmywillisn@gmail.com>2013-08-15 14:15:49 -0400
commit6318ae6ab90d4b450dfadf32ab95fe52ed6331cb (patch)
tree50b247fed8569e909e380b281e9145bd1458a39e /src/serialize.js
parent7627b8b6d9ef6e57dbd20a55b946bd1991c1223e (diff)
downloadjquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.tar.gz
jquery-6318ae6ab90d4b450dfadf32ab95fe52ed6331cb.zip
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Diffstat (limited to 'src/serialize.js')
-rw-r--r--src/serialize.js14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/serialize.js b/src/serialize.js
index 65dee4005..369f63e74 100644
--- a/src/serialize.js
+++ b/src/serialize.js
@@ -1,3 +1,10 @@
+define([
+ "./core",
+ "./manipulation/var/rcheckableType",
+ "./traversing", // filter
+ "./attributes/prop"
+], function( jQuery, rcheckableType ) {
+
var r20 = /%20/g,
rbracket = /\[\]$/,
rCRLF = /\r?\n/g,
@@ -19,7 +26,7 @@ jQuery.fn.extend({
// Use .is(":disabled") so that fieldset[disabled] works
return this.name && !jQuery( this ).is( ":disabled" ) &&
rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
- ( this.checked || !manipulation_rcheckableType.test( type ) );
+ ( this.checked || !rcheckableType.test( type ) );
})
.map(function( i, elem ){
var val = jQuery( this ).val();
@@ -35,8 +42,8 @@ jQuery.fn.extend({
}
});
-//Serialize an array of form elements or a set of
-//key/values into a query string
+// Serialize an array of form elements or a set of
+// key/values into a query string
jQuery.param = function( a, traditional ) {
var prefix,
s = [],
@@ -97,3 +104,4 @@ function buildParams( prefix, obj, traditional, add ) {
add( prefix, obj );
}
}
+});