mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Revert "Ajax: Remove remnants of the load event alias handling"
This reverts commit 38bd5fedde
.
This commit is contained in:
parent
0aa24f9c75
commit
fa92796af8
@ -4,14 +4,23 @@ define( [
|
|||||||
"../ajax",
|
"../ajax",
|
||||||
"../traversing",
|
"../traversing",
|
||||||
"../manipulation",
|
"../manipulation",
|
||||||
"../selector"
|
"../selector",
|
||||||
|
// Optional event/alias dependency
|
||||||
|
"../event/alias"
|
||||||
], function( jQuery ) {
|
], function( jQuery ) {
|
||||||
|
|
||||||
|
// Keep a copy of the old load method
|
||||||
|
var _load = jQuery.fn.load;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load a url into a page
|
* Load a url into a page
|
||||||
*/
|
*/
|
||||||
jQuery.fn.load = function( url, params, callback ) {
|
jQuery.fn.load = function( url, params, callback ) {
|
||||||
var selector, response, type,
|
if ( typeof url !== "string" && _load ) {
|
||||||
|
return _load.apply( this, arguments );
|
||||||
|
}
|
||||||
|
|
||||||
|
var selector, type, response,
|
||||||
self = this,
|
self = this,
|
||||||
off = url.indexOf( " " );
|
off = url.indexOf( " " );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user