Ajax: Remove remnants of the load event alias handling

(cherry-picked from 38a669735d)

Refs 0705be4750
Refs gh-2287
Closes gh-2362
This commit is contained in:
Michał Gołębiowski 2015-05-30 19:09:32 +02:00
parent 42ea746825
commit ceeaaeb45e

View File

@ -4,22 +4,13 @@ define([
"../ajax",
"../traversing",
"../manipulation",
"../selector",
// Optional event/alias dependency
"../event/alias"
"../selector"
], 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, response, type,
self = this,
off = url.indexOf(" ");