( key, valueOrFunction )
| 60 | var prefix, |
| 61 | s = [], |
| 62 | add = function( key, valueOrFunction ) { |
| 63 | |
| 64 | // If value is a function, invoke it and use its return value |
| 65 | var value = isFunction( valueOrFunction ) ? |
| 66 | valueOrFunction() : |
| 67 | valueOrFunction; |
| 68 | |
| 69 | s[ s.length ] = encodeURIComponent( key ) + "=" + |
| 70 | encodeURIComponent( value == null ? "" : value ); |
| 71 | }; |
| 72 | |
| 73 | // If an array was passed in, assume that it is an array of form elements. |
| 74 | if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { |
no test coverage detected