Changeset 5586
- Timestamp:
- 05/13/08 19:47:39 (3 months ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/ajax.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/ajax.js
r5577 r5586 236 236 // If we're requesting a remote document 237 237 // and trying to load JSON or Script with a GET 238 if ( (!s.url.indexOf("http") || !s.url.indexOf("//")) && s.dataType == "script" && s.type.toLowerCase() == "get" ) { 238 if ( s.dataType == "script" && s.type.toLowerCase() == "get" 239 && jQuery.ajax.re.test(s.url) && jQuery.ajax.re.exec(s.url)[1] != location.host ){ 239 240 var head = document.getElementsByTagName("head")[0]; 240 241 var script = document.createElement("script"); … … 500 501 501 502 }); 503 504 // Matches an absolute URL, and saves the domain 505 jQuery.ajax.re = /^(?:\w+:)?\/\/([^\/?#]+)/;