diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-07-09 21:38:11 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-07-09 21:39:22 -0400 |
commit | 8f01b92b8fd85a66f2cba671f8b9ff6f7095c34b (patch) | |
tree | 6120b02292d65f3ac1248a7c82aae5fbbb505d7d /src/ajax | |
parent | f30f7732e7775b6e417c4c22ced7adb2bf76bf89 (diff) | |
download | jquery-8f01b92b8fd85a66f2cba671f8b9ff6f7095c34b.tar.gz jquery-8f01b92b8fd85a66f2cba671f8b9ff6f7095c34b.zip |
Follow the style guide, lose 72 bytes! Closes gh-840.
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/xhr.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index fb431034d..435c174bf 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -1,12 +1,12 @@ -var // #5280: Internet Explorer will keep connections alive if we don't abort on unload +var xhrCallbacks, + // #5280: Internet Explorer will keep connections alive if we don't abort on unload xhrOnUnloadAbort = window.ActiveXObject ? function() { // Abort all pending requests for ( var key in xhrCallbacks ) { xhrCallbacks[ key ]( 0, 1 ); } } : false, - xhrId = 0, - xhrCallbacks; + xhrId = 0; // Functions to create xhrs function createStandardXHR() { @@ -57,9 +57,8 @@ if ( jQuery.support.ajax ) { send: function( headers, complete ) { // Get a new xhr - var xhr = s.xhr(), - handle, - i; + var handle, i, + xhr = s.xhr(); // Open the socket // Passing null username, generates a login popup on Opera (#2865) |