diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 14:15:49 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-08-15 15:49:49 -0400 |
commit | 217cbb7109b7a5bbacd3170e90607ca5972fc1cd (patch) | |
tree | 4deb7b42f248f7ea73398dc329584899b5573413 /src/serialize.js | |
parent | 144837afdfab98d6a9f753bc4ccc1feede410101 (diff) | |
download | jquery-217cbb7109b7a5bbacd3170e90607ca5972fc1cd.tar.gz jquery-217cbb7109b7a5bbacd3170e90607ca5972fc1cd.zip |
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Conflicts:
Gruntfile.js
README.md
src/ajax.js
src/ajax/xhr.js
src/attributes.js
src/core.js
src/css.js
src/data.js
src/effects.js
src/event.js
src/manipulation.js
src/offset.js
src/selector-native.js
src/traversing.js
test/unit/core.js
test/unit/data.js
Diffstat (limited to 'src/serialize.js')
-rw-r--r-- | src/serialize.js | 14 |
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 ); } } +}); |