From: Ariel Flesler Date: Thu, 8 May 2008 16:23:43 +0000 (+0000) Subject: jquery event: fixed $.fn.load, closes #2819. X-Git-Tag: 1.2.4b~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a56317ea3ae99cee1783e27e36f3b9b323695bf8;p=jquery.git jquery event: fixed $.fn.load, closes #2819. --- diff --git a/src/ajax.js b/src/ajax.js index b90ca16cb..e0ab7f483 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -1,7 +1,10 @@ jQuery.fn.extend({ + // Keep a copy of the old load + _load: jQuery.fn.load, + load: function( url, params, callback ) { - if ( jQuery.isFunction( url ) ) - return this.bind("load", url); + if ( typeof url != 'string' ) + return this._load( url ); var off = url.indexOf(" "); if ( off >= 0 ) {