diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-12-22 15:17:35 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-12-22 15:17:35 +0300 |
commit | fa92796af8f80b7ab86c8d63de6bced0dfe305b6 (patch) | |
tree | 07467aa43e3b52519745a3297eaf2511467f8a08 /src | |
parent | 0aa24f9c75750410424b32630dc1bee791ab18d3 (diff) | |
download | jquery-fa92796af8f80b7ab86c8d63de6bced0dfe305b6.tar.gz jquery-fa92796af8f80b7ab86c8d63de6bced0dfe305b6.zip |
Revert "Ajax: Remove remnants of the load event alias handling"
This reverts commit 38bd5feddeca3acdd740300f370450621d4e2731.
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax/load.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js index 743fe22e6..4ba370e21 100644 --- a/src/ajax/load.js +++ b/src/ajax/load.js @@ -4,14 +4,23 @@ define( [ "../ajax", "../traversing", "../manipulation", - "../selector" + "../selector", + // Optional event/alias dependency + "../event/alias" ], 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 ) { - var selector, response, type, + if ( typeof url !== "string" && _load ) { + return _load.apply( this, arguments ); + } + + var selector, type, response, self = this, off = url.indexOf( " " ); |