Permalink
Browse files

jquery event: fixed $.fn.load, closes #2819.

  • Loading branch information...
1 parent 858d56f commit a56317ea3ae99cee1783e27e36f3b9b323695bf8 @flesler flesler committed May 8, 2008
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/ajax.js
View
@@ -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 ) {

0 comments on commit a56317e

Please sign in to comment.