aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-01-29 04:04:58 +0400
committerDave Methvin <dave.methvin@gmail.com>2013-01-31 10:22:12 -0500
commitd79bf3517eda9b74883c68c255e82067449d3274 (patch)
tree21462d915bb9f74739274d34b3fca8788425c1eb /src/ajax.js
parente392e5579b9f8f1e20c0befe0577e5141fc45468 (diff)
downloadjquery-d79bf3517eda9b74883c68c255e82067449d3274.tar.gz
jquery-d79bf3517eda9b74883c68c255e82067449d3274.zip
Fix #13355. Tweak Uglify options and var order for gzip. Close gh-1151.
Change uglify-js options for compressor Change variables initialization sequence for some declarations
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ajax.js b/src/ajax.js
index a7508e972..04c7e0208 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -2,7 +2,6 @@ var
// Document location
ajaxLocParts,
ajaxLocation,
-
ajax_nonce = jQuery.now(),
ajax_rquery = /\?/,
@@ -115,7 +114,7 @@ function inspectPrefiltersOrTransports( structure, options, originalOptions, jqX
// that takes "flat" options (not to be deep extended)
// Fixes #9887
function ajaxExtend( target, src ) {
- var key, deep,
+ var deep, key,
flatOptions = jQuery.ajaxSettings.flatOptions || {};
for ( key in src ) {
@@ -135,7 +134,7 @@ jQuery.fn.load = function( url, params, callback ) {
return _load.apply( this, arguments );
}
- var selector, type, response,
+ var selector, response, type,
self = this,
off = url.indexOf(" ");
@@ -316,20 +315,23 @@ jQuery.extend({
// Force options to be an object
options = options || {};
- var transport,
+ var // Cross-domain detection vars
+ parts,
+ // Loop variable
+ i,
// URL without anti-cache param
cacheURL,
- // Response headers
+ // Response headers as string
responseHeadersString,
- responseHeaders,
// timeout handle
timeoutTimer,
- // Cross-domain detection vars
- parts,
+
// To know if global events are to be dispatched
fireGlobals,
- // Loop variable
- i,
+
+ transport,
+ // Response headers
+ responseHeaders,
// Create the final options object
s = jQuery.ajaxSetup( {}, options ),
// Callbacks context
@@ -704,8 +706,7 @@ jQuery.extend({
* - returns the corresponding response
*/
function ajaxHandleResponses( s, jqXHR, responses ) {
-
- var ct, type, finalDataType, firstDataType,
+ var firstDataType, ct, finalDataType, type,
contents = s.contents,
dataTypes = s.dataTypes,
responseFields = s.responseFields;
@@ -766,8 +767,7 @@ function ajaxHandleResponses( s, jqXHR, responses ) {
// Chain conversions given the request and the original response
function ajaxConvert( s, response ) {
-
- var conv, conv2, current, tmp,
+ var conv2, current, conv, tmp,
converters = {},
i = 0,
// Work with a copy of dataTypes in case we need to modify it for conversion