jquery event: fixed $.fn.load, closes #2819.
This commit is contained in:
parent
858d56fc8e
commit
a56317ea3a
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in a new issue