aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax/load.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-05-30 19:09:32 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-06-01 19:13:06 +0200
commitceeaaeb45e2d3b9bcd1c56208b2dea2fc580ef41 (patch)
tree9eba41d344256930041234b99b627e2588039ae1 /src/ajax/load.js
parent42ea7468250f1b612684a71b8643ae25367ff469 (diff)
downloadjquery-ceeaaeb45e2d3b9bcd1c56208b2dea2fc580ef41.tar.gz
jquery-ceeaaeb45e2d3b9bcd1c56208b2dea2fc580ef41.zip
Ajax: Remove remnants of the load event alias handling
(cherry-picked from 38a669735d08bcbd28cfb0d77eee82c67aa89eeb) Refs 0705be475092aede1eddae01319ec931fb9c65fc Refs gh-2287 Closes gh-2362
Diffstat (limited to 'src/ajax/load.js')
-rw-r--r--src/ajax/load.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js
index d28277bde..1b3ebcfc9 100644
--- a/src/ajax/load.js
+++ b/src/ajax/load.js
@@ -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(" ");