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

Function add

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

Source from the content-addressed store, hash-verified

9474 var prefix,
9475 s = [],
9476 add = function( key, value ) {
9477 // If value is a function, invoke it and return its value
9478 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
9479 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
9480 };
9481
9482 // Set traditional to true for jQuery <= 1.3.2 behavior.
9483 if ( traditional === undefined ) {

Callers 2

jquery-1.11.1.jsFile · 0.70
buildParamsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected