MCPcopy Create free account
hub / github.com/JsAaron/jQuery / add

Function add

2.1.1/test/jquery-2.1.1.js:8449–8453  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

8447 var prefix,
8448 s = [],
8449 add = function( key, value ) {
8450 // If value is a function, invoke it and return its value
8451 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
8452 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
8453 };
8454
8455 // Set traditional to true for jQuery <= 1.3.2 behavior.
8456 if ( traditional === undefined ) {

Callers 2

jquery-2.1.1.jsFile · 0.70
buildParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected