Make sure that when multiple variables are being declared that assignments are each done on their own line.
This commit is contained in:
parent
b5b3c73db3
commit
fb48ae8e6c
12 changed files with 98 additions and 45 deletions
11
src/ajax.js
11
src/ajax.js
|
@ -506,11 +506,12 @@ jQuery.extend({
|
|||
// Serialize an array of form elements or a set of
|
||||
// key/values into a query string
|
||||
param: function( a, traditional ) {
|
||||
var s = [], add = function( key, value ) {
|
||||
// If value is a function, invoke it and return its value
|
||||
value = jQuery.isFunction(value) ? value() : value;
|
||||
s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
|
||||
};
|
||||
var s = [],
|
||||
add = function( key, value ) {
|
||||
// If value is a function, invoke it and return its value
|
||||
value = jQuery.isFunction(value) ? value() : value;
|
||||
s[ s.length ] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
|
||||
};
|
||||
|
||||
// Set traditional to true for jQuery <= 1.3.2 behavior.
|
||||
if ( traditional === undefined ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue