X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fajax.js;h=e82a082992ac976c798b4af3fab5938420ba0aea;hb=8259efe7342870c79195ab59ac2368bf9961bc5a;hp=690bcb53bf175b6b651a764802b34ab6362de934;hpb=e57b73a0ac6f8fd0cdbbe7d43f1c7e198f475337;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 690bcb5..e82a082 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -261,7 +261,7 @@ jQuery.extend({ }; } - if ( s.dataType === "script" && s.cache === null ) { + if ( s.dataType === "script" && s.cache === undefined ) { s.cache = false; } @@ -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 ) {