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

Function add

2.0.3/2.0.3.js:6782–6786  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

6780 var prefix,
6781 s = [],
6782 add = function( key, value ) {
6783 // If value is a function, invoke it and return its value
6784 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
6785 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
6786 };
6787
6788 // Set traditional to true for jQuery <= 1.3.2 behavior.
6789 if ( traditional === undefined ) {

Callers 3

Callbacks.jsFile · 0.70
2.0.3.jsFile · 0.70
buildParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected