Commit 639f4931 authored by John Resig's avatar John Resig

No reason to expose the temporary _load method.

parent d3d497f9
...@@ -6,15 +6,15 @@ var jsc = now(), ...@@ -6,15 +6,15 @@ var jsc = now(),
rquery = /\?/, rquery = /\?/,
rts = /(\?|&)_=.*?(&|$)/, rts = /(\?|&)_=.*?(&|$)/,
rurl = /^(\w+:)?\/\/([^\/?#]+)/, rurl = /^(\w+:)?\/\/([^\/?#]+)/,
r20 = /%20/g; r20 = /%20/g,
jQuery.fn.extend({ // Keep a copy of the old load method
// Keep a copy of the old load _load = jQuery.fn.load;
_load: jQuery.fn.load,
jQuery.fn.extend({
load: function( url, params, callback ) { load: function( url, params, callback ) {
if ( typeof url !== "string" ) { if ( typeof url !== "string" ) {
return this._load( url ); return _load.call( this, url );
// Don't do a request if no elements are being requested // Don't do a request if no elements are being requested
} else if ( !this.length ) { } else if ( !this.length ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment