X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=d10b9311293d18614e7e3782f996122282b18fe7;hb=3e6e3c5eb82c1dcb6fe2d2555db63b5861d219ab;hp=690bcb53bf175b6b651a764802b34ab6362de934;hpb=e57b73a0ac6f8fd0cdbbe7d43f1c7e198f475337;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 690bcb5..d10b931 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -507,11 +507,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 ) {