jQuery: The Write Less, Do More JavaScript Library

Changeset 5501

Show
Ignore:
Timestamp:
05/08/08 16:23:43 (5 days ago)
Author:
aflesler
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/src/ajax.js

    r5478 r5501  
    11jQuery.fn.extend({ 
     2    // Keep a copy of the old load 
     3    _load: jQuery.fn.load, 
     4     
    25    load: function( url, params, callback ) { 
    3         if ( jQuery.isFunction( url ) ) 
    4             return this.bind("load", url); 
     6        if ( typeof url != 'string' ) 
     7            return this._load( url ); 
    58 
    69        var off = url.indexOf(" ");