aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Flesler <aflesler@gmail.com>2008-05-13 19:58:00 +0000
committerAriel Flesler <aflesler@gmail.com>2008-05-13 19:58:00 +0000
commit06eb4d3223c4eee4223fbb084033dadfeae12f34 (patch)
tree3938333a000560eac67a6a72ab2aca4bdeefb277
parent5c0aea3bfe58142c0f92fc3a059588455376ec29 (diff)
downloadjquery-06eb4d3223c4eee4223fbb084033dadfeae12f34.tar.gz
jquery-06eb4d3223c4eee4223fbb084033dadfeae12f34.zip
jquery ajax: renaming jQuery.ajax.re to remote.
-rw-r--r--src/ajax.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 598232f68..1a32b45db 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -233,10 +233,13 @@ jQuery.extend({
if ( s.global && ! jQuery.active++ )
jQuery.event.trigger( "ajaxStart" );
+ // Matches an absolute URL, and saves the domain
+ var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;
+
// If we're requesting a remote document
// and trying to load JSON or Script with a GET
if ( s.dataType == "script" && s.type.toLowerCase() == "get"
- && jQuery.ajax.re.test(s.url) && jQuery.ajax.re.exec(s.url)[1] != location.host ){
+ && remote.test(s.url) && remote.exec(s.url)[1] != location.host ){
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
script.src = s.url;
@@ -500,6 +503,3 @@ jQuery.extend({
}
});
-
-// Matches an absolute URL, and saves the domain
-jQuery.ajax.re = /^(?:\w+:)?\/\/([^\/?#]+)/;