diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-01-21 14:12:35 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-01-21 14:26:35 +0100 |
commit | 7a3cf9c03cc34d5493383852f94d96fe4a3486ef (patch) | |
tree | 4e65c234b5ed2a7527b04c3269aa006cbb0a1f65 /README.md | |
parent | 37df5cdf4e79d81448706c6e7d85d1fdaff48a1e (diff) | |
download | jquery-7a3cf9c03cc34d5493383852f94d96fe4a3486ef.tar.gz jquery-7a3cf9c03cc34d5493383852f94d96fe4a3486ef.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
(cherry picked from 23d53928f383b0e7440bf4b08b7524e6af232fad)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -90,10 +90,9 @@ Some example modules that can be excluded are: - **deprecated**: Methods documented as deprecated but not yet removed. - **dimensions**: The `.width()` and `.height()` methods, including `inner-` and `outer-` variations. - **effects**: The `.animate()` method and its shorthands such as `.slideUp()` or `.hide("slow")`. -- **event**: The `.on()` and `.off()` methods and all event functionality. Also removes `event/alias`. -- **event/alias**: All event attaching/triggering shorthands like `.click()` or `.mouseover()`. +- **event**: The `.on()` and `.off()` methods and all event functionality. - **event/focusin**: Cross-browser support for the focusin and focusout events. -- **event/trigger**: The `.trigger()` and `.triggerHandler()` methods. Used by **alias** and **focusin** modules. +- **event/trigger**: The `.trigger()` and `.triggerHandler()` methods. - **offset**: The `.offset()`, `.position()`, `.offsetParent()`, `.scrollLeft()`, and `.scrollTop()` methods. - **wrap**: The `.wrap()`, `.wrapAll()`, `.wrapInner()`, and `.unwrap()` methods. - **core/ready**: Exclude the ready module if you place your scripts at the end of the body. Any ready callbacks bound with `jQuery()` will simply be called immediately. However, `jQuery(document).ready()` will not be a function and `.on("ready", ...)` or similar will not be triggered. @@ -154,7 +153,7 @@ grunt custom:-css Exclude a bunch of modules: ```bash -grunt custom:-ajax,-css,-deprecated,-dimensions,-effects,-event/alias,-offset,-wrap +grunt custom:-ajax/jsonp,-css,-deprecated,-dimensions,-effects,-offset,-wrap ``` There is also a special alias to generate a build with the same configuration as the official jQuery Slim build is generated: |