aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-02-03 06:12:47 +0100
committerjaubourg <j@ubourg.net>2011-02-03 06:12:47 +0100
commitee22a59129e082a2bb9f5bc0b085191ab6faafc8 (patch)
tree1dec7c60c9f9918a5a4afb2303301b818ae40ce9 /src/ajax.js
parent50e950a96e0fae23a1ae418951a298e2949ff351 (diff)
downloadjquery-ee22a59129e082a2bb9f5bc0b085191ab6faafc8.tar.gz
jquery-ee22a59129e082a2bb9f5bc0b085191ab6faafc8.zip
Stores jQuery.ajaxSettings.isLocal locally at load time so that any change to it won't affect the transport. Fixes the url parsing regexp to deal with empty domains. Adds informative text into test/localfile.html and handles Opera's failure. Revises the way xhr are created by doing all tests at load time and normalizes all the xhr creation functions so that none of them may throw an exception.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 4b3ab7687..2c61cf276 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -15,7 +15,7 @@ var r20 = /%20/g,
rselectTextarea = /^(?:select|textarea)/i,
rspacesAjax = /\s+/,
rts = /([?&])_=[^&]*/,
- rurl = /^(\w+:)\/\/([^\/?#:]+)(?::(\d+))?/,
+ rurl = /^(\w+:)\/\/([^\/?#:]*)(?::(\d+))?/,
// Keep a copy of the old load method
_load = jQuery.fn.load,