]> source.dussan.org Git - jquery.git/commitdiff
Ajax: Remove remnants of the load event alias handling
authorMichał Gołębiowski <m.goleb@gmail.com>
Sat, 30 May 2015 17:09:32 +0000 (19:09 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 1 Jun 2015 17:13:06 +0000 (19:13 +0200)
(cherry-picked from 38a669735d08bcbd28cfb0d77eee82c67aa89eeb)

Refs 0705be475092aede1eddae01319ec931fb9c65fc
Refs gh-2287
Closes gh-2362

src/ajax/load.js

index d28277bdef39aef9066a56de06f7b220c01e9704..1b3ebcfc9bef17050953d7447b11f8629c8c6ee6 100644 (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(" ");