jQuery: The Write Less, Do More JavaScript Library

Changeset 5588

Show
Ignore:
Timestamp:
05/13/08 19:58:00 (3 months ago)
Author:
aflesler
Message:

jquery ajax: renaming jQuery.ajax.re to remote.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/ajax.js

    r5586 r5588  
    234234            jQuery.event.trigger( "ajaxStart" ); 
    235235 
     236        // Matches an absolute URL, and saves the domain 
     237        var remote = /^(?:\w+:)?\/\/([^\/?#]+)/; 
     238 
    236239        // If we're requesting a remote document 
    237240        // and trying to load JSON or Script with a GET 
    238241        if ( s.dataType == "script" && s.type.toLowerCase() == "get" 
    239                 && jQuery.ajax.re.test(s.url) && jQuery.ajax.re.exec(s.url)[1] != location.host ){ 
     242                && remote.test(s.url) && remote.exec(s.url)[1] != location.host ){ 
    240243            var head = document.getElementsByTagName("head")[0]; 
    241244            var script = document.createElement("script"); 
     
    501504 
    502505}); 
    503  
    504 // Matches an absolute URL, and saves the domain 
    505 jQuery.ajax.re = /^(?:\w+:)?\/\/([^\/?#]+)/;