MCPcopy Create free account
hub / github.com/benoitpointet/jquery-scrollsnap-plugin / add

Function add

demo/foundation/javascripts/jquery.js:7201–7205  ·  view source on GitHub ↗
( key, value )

Source from the content-addressed store, hash-verified

7199 var prefix,
7200 s = [],
7201 add = function( key, value ) {
7202 // If value is a function, invoke it and return its value
7203 value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
7204 s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
7205 };
7206
7207 // Set traditional to true for jQuery <= 1.3.2 behavior.
7208 if ( traditional === undefined ) {

Callers 2

jquery.jsFile · 0.85
buildParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected