diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-11-11 19:34:35 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-11-11 19:34:35 +0300 |
commit | 778fc5e977976fe81eeb149dd56ce7819412e5b2 (patch) | |
tree | 081c8226219263433bd4562d332f7fd0a51b0377 | |
parent | 999010b2e7abeb493f70bb0d820c8c924a2a36c3 (diff) | |
download | jquery-778fc5e977976fe81eeb149dd56ce7819412e5b2.tar.gz jquery-778fc5e977976fe81eeb149dd56ce7819412e5b2.zip |
Revert "Ajax: Remove remnants of the load event alias handling"
This reverts commit 38a669735d08bcbd28cfb0d77eee82c67aa89eeb.
-rw-r--r-- | src/ajax/load.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ajax/load.js b/src/ajax/load.js index 82f0cf308..0f1b986f8 100644 --- a/src/ajax/load.js +++ b/src/ajax/load.js @@ -4,13 +4,22 @@ 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 ) { + if ( typeof url !== "string" && _load ) { + return _load.apply( this, arguments ); + } + var selector, type, response, self = this, off = url.indexOf( " " ); |