aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-02-11 01:23:13 -0500
committerJohn Resig <jeresig@gmail.com>2010-02-11 01:23:13 -0500
commit639f4931b0409a8eb83aaf89a03b6b52f674663e (patch)
treedab1862603a724014fb1a2eb913c780c9412200a /src
parentd3d497f900a559ca254d09470db532064eeacc1e (diff)
downloadjquery-639f4931b0409a8eb83aaf89a03b6b52f674663e.tar.gz
jquery-639f4931b0409a8eb83aaf89a03b6b52f674663e.zip
No reason to expose the temporary _load method.
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js10
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 ) {