]> source.dussan.org Git - jquery.git/commitdiff
jquery event: fixed $.fn.load, closes #2819.
authorAriel Flesler <aflesler@gmail.com>
Thu, 8 May 2008 16:23:43 +0000 (16:23 +0000)
committerAriel Flesler <aflesler@gmail.com>
Thu, 8 May 2008 16:23:43 +0000 (16:23 +0000)
src/ajax.js

index b90ca16cbc4076b69b0811afec201b96cc890a9e..e0ab7f483c608c365980e7d417292bced0c9921a 100644 (file)
@@ -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 ) {