MCPcopy Index your code
hub / github.com/JsAaron/jQuery / add

Function add

2.1.1/src/serialize.js:48–52  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

46 var prefix,
47 s = [],
48 add = function( key, value ) {
49 // If value is a function, invoke it and return its value
50 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
51 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
52 };
53
54 // Set traditional to true for jQuery <= 1.3.2 behavior.
55 if ( traditional === undefined ) {

Callers 3

callbacks.jsFile · 0.70
buildParamsFunction · 0.70
serialize.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected