MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / add

Function add

src/test/resources/libraries/jQuery/1.8.2/jquery/src/serialize.js:39–43  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

37 var prefix,
38 s = [],
39 add = function( key, value ) {
40 // If value is a function, invoke it and return its value
41 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
42 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
43 };
44
45 // Set traditional to true for jQuery <= 1.3.2 behavior.
46 if ( traditional === undefined ) {

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected