aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ajax.js b/src/ajax.js
index f12b231a8..3ceb82c6d 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -2,7 +2,7 @@ var
// Document location
ajaxLocParts,
ajaxLocation,
-
+
ajax_nonce = jQuery.now(),
ajax_rquery = /\?/,
@@ -140,7 +140,7 @@ jQuery.fn.load = function( url, params, callback ) {
off = url.indexOf(" ");
if ( off >= 0 ) {
- selector = url.slice( off, url.length );
+ selector = url.slice( off );
url = url.slice( 0, off );
}
@@ -427,10 +427,11 @@ jQuery.extend({
jqXHR.error = jqXHR.fail;
// Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
+ // Add protocol if not provided (prefilters might expect it)
// Handle falsy url in the settings object (#10093: consistency with old signature)
// We also use the url parameter if available
- s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
+ s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" )
+ .replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
// Alias method option to type as per ticket #12004
s.type = options.method || options.type || s.method || s.type;