Skip to content
Permalink
Browse files

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

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

0 comments on commit a56317e

Please sign in to comment.
You can’t perform that action at this time.