diff options
author | John Resig <jeresig@gmail.com> | 2010-02-11 01:23:13 -0500 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-02-11 01:23:13 -0500 |
commit | 639f4931b0409a8eb83aaf89a03b6b52f674663e (patch) | |
tree | dab1862603a724014fb1a2eb913c780c9412200a /src | |
parent | d3d497f900a559ca254d09470db532064eeacc1e (diff) | |
download | jquery-639f4931b0409a8eb83aaf89a03b6b52f674663e.tar.gz jquery-639f4931b0409a8eb83aaf89a03b6b52f674663e.zip |
No reason to expose the temporary _load method.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ajax.js b/src/ajax.js index 3c19ad6c7..7b15a1d80 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -6,15 +6,15 @@ var jsc = now(), rquery = /\?/, rts = /(\?|&)_=.*?(&|$)/, rurl = /^(\w+:)?\/\/([^\/?#]+)/, - r20 = /%20/g; + r20 = /%20/g, -jQuery.fn.extend({ - // Keep a copy of the old load - _load: jQuery.fn.load, + // Keep a copy of the old load method + _load = jQuery.fn.load; +jQuery.fn.extend({ load: function( url, params, callback ) { if ( typeof url !== "string" ) { - return this._load( url ); + return _load.call( this, url ); // Don't do a request if no elements are being requested } else if ( !this.length ) { |