]> source.dussan.org Git - jquery.git/commitdiff
No reason to expose the temporary _load method.
authorJohn Resig <jeresig@gmail.com>
Thu, 11 Feb 2010 06:23:13 +0000 (01:23 -0500)
committerJohn Resig <jeresig@gmail.com>
Thu, 11 Feb 2010 06:23:13 +0000 (01:23 -0500)
src/ajax.js

index 3c19ad6c701f18a28fe4d3f59ea70c47c06109cf..7b15a1d80f358b4fa296767df322f90939e6b77c 100644 (file)
@@ -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 ) {