Revert "Ajax: Remove remnants of the load event alias handling"

This reverts commit 38a669735d.
This commit is contained in:
Oleg Gaidarenko 2015-11-11 19:34:35 +03:00
parent 999010b2e7
commit 778fc5e977

View File

@ -4,13 +4,22 @@ define( [
"../ajax",
"../traversing",
"../manipulation",
"../selector"
"../selector",
// Optional event/alias dependency
"../event/alias"
], function( jQuery ) {
// Keep a copy of the old load method
var _load = jQuery.fn.load;
/**
* Load a url into a page
*/
jQuery.fn.load = function( url, params, callback ) {
if ( typeof url !== "string" && _load ) {
return _load.apply( this, arguments );
}
var selector, type, response,
self = this,
off = url.indexOf( " " );