mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 01:36:16 -05:00
Ajax: Remove remnants of the load event alias handling
Refs 0705be4750
Refs gh-2287
Closes gh-2362
This commit is contained in:
@@ -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, type, response,
|
||||
self = this,
|
||||
off = url.indexOf(" ");
|
||||
|
||||
Reference in New Issue
Block a user