]> 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:05:54 +0000 (19:05 +0200)
Refs 0705be475092aede1eddae01319ec931fb9c65fc
Refs gh-2287
Closes gh-2362

src/ajax/load.js

index 00a9f46f6643683e8924498b351e42ccd67b3a9e..8326e928750f84f9f678358ebb0d84591f12b08b 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, type, response,
                self = this,
                off = url.indexOf(" ");