No reason to expose the temporary _load method.

This commit is contained in:
John Resig 2010-02-11 01:23:13 -05:00
parent d3d497f900
commit 639f4931b0

View file

@ -6,15 +6,15 @@ var jsc = now(),
rquery = /\?/,
rts = /(\?|&)_=.*?(&|$)/,
rurl = /^(\w+:)?\/\/([^\/?#]+)/,
r20 = /%20/g;
r20 = /%20/g,
// Keep a copy of the old load method
_load = jQuery.fn.load;
jQuery.fn.extend({
// Keep a copy of the old load
_load: jQuery.fn.load,
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 ) {