diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-01-21 14:12:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 14:12:35 +0100 |
commit | 23d53928f383b0e7440bf4b08b7524e6af232fad (patch) | |
tree | e3d3b4b78a0e2aa53dfa3a4e4ac57296881f47b7 /src/deprecated.js | |
parent | 865469f5e60f55feb28469bb0a7526dd22f04b4e (diff) | |
download | jquery-23d53928f383b0e7440bf4b08b7524e6af232fad.tar.gz jquery-23d53928f383b0e7440bf4b08b7524e6af232fad.zip |
Ajax: Deprecate AJAX event aliases, inline event/alias into deprecated
A new `src/deprecated` directory makes it possible to exclude some deprecated
APIs from a custom build when their respective "parent" module is excluded
without keeping that module outside of the `src/deprecated` directory or
the `src/deprecated.js` file.
Closes gh-4572
Diffstat (limited to 'src/deprecated.js')
-rw-r--r-- | src/deprecated.js | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/deprecated.js b/src/deprecated.js index b7879c208..be1997321 100644 --- a/src/deprecated.js +++ b/src/deprecated.js @@ -2,28 +2,8 @@ import jQuery from "./core.js"; import slice from "./var/slice.js"; import trim from "./var/trim.js"; -import "./event/alias.js"; - -jQuery.fn.extend( { - - bind: function( types, data, fn ) { - return this.on( types, null, data, fn ); - }, - unbind: function( types, fn ) { - return this.off( types, null, fn ); - }, - - delegate: function( selector, types, data, fn ) { - return this.on( types, selector, data, fn ); - }, - undelegate: function( selector, types, fn ) { - - // ( namespace ) or ( selector, types [, fn] ) - return arguments.length === 1 ? - this.off( selector, "**" ) : - this.off( types, selector || "**", fn ); - } -} ); +import "./deprecated/ajax-event-alias.js"; +import "./deprecated/event.js"; // Bind a function to a context, optionally partially applying any // arguments. |