Skip to content

Commit

Permalink
jquery event: fixed $.fn.load, closes #2819.
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed May 8, 2008
1 parent 858d56f commit a56317e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ajax.js
@@ -1,7 +1,10 @@
jQuery.fn.extend({ jQuery.fn.extend({
// Keep a copy of the old load
_load: jQuery.fn.load,

load: function( url, params, callback ) { load: function( url, params, callback ) {
if ( jQuery.isFunction( url ) ) if ( typeof url != 'string' )
return this.bind("load", url); return this._load( url );


var off = url.indexOf(" "); var off = url.indexOf(" ");
if ( off >= 0 ) { if ( off >= 0 ) {
Expand Down

0 comments on commit a56317e

Please sign in to comment.