mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Ajax: Remove remnants of the load event alias handling
(cherry-picked from38a669735d
) Refs0705be4750
Refs gh-2287 Closes gh-2362
This commit is contained in:
parent
42ea746825
commit
ceeaaeb45e
@ -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(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user