Commit e9fb7d5b authored by jaubourg's avatar jaubourg

Gets rid of a var statement by moving variable declarations up.

parent e221d39e
...@@ -274,6 +274,9 @@ jQuery.extend({ ...@@ -274,6 +274,9 @@ jQuery.extend({
transport, transport,
// timeout handle // timeout handle
timeoutTimer, timeoutTimer,
// Cross-domain detection vars
loc = document.location,
parts,
// The jXHR state // The jXHR state
state = 0, state = 0,
// Loop variable // Loop variable
...@@ -527,10 +530,8 @@ jQuery.extend({ ...@@ -527,10 +530,8 @@ jQuery.extend({
s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( /\s+/ ); s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( /\s+/ );
// Determine if a cross-domain request is in order // Determine if a cross-domain request is in order
var parts = rurl.exec( s.url.toLowerCase() ),
loc = location;
if ( ! s.crossDomain ) { if ( ! s.crossDomain ) {
parts = rurl.exec( s.url.toLowerCase() );
s.crossDomain = !!( s.crossDomain = !!(
parts && parts &&
( parts[ 1 ] && parts[ 1 ] != loc.protocol || ( parts[ 1 ] && parts[ 1 ] != loc.protocol ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment