diff options
| author | Chris Rebert <[email protected]> | 2016-02-16 03:52:30 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-02-16 14:25:26 -0800 |
| commit | 1037e33347c8b08952ee66bc5111181eb7b3c93f (patch) | |
| tree | 72da99037864635d1ea496819b5a2e0603fa4e8c | |
| parent | 66c81fe4a14a783bf371b279fac32c7a111d79b8 (diff) | |
| download | bootstrap-1037e33347c8b08952ee66bc5111181eb7b3c93f.tar.xz bootstrap-1037e33347c8b08952ee66bc5111181eb7b3c93f.zip | |
Port #19219 to v3
CONTRIBUTING: Document restriction regarding jQuery event alias methods
Refs #19192
[ci skip]
| -rw-r--r-- | CONTRIBUTING.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8b5309368..d102d5e38 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -250,6 +250,7 @@ includes code changes) and under the terms of the - 2 spaces (no tabs) - strict mode - "Attractive" +- Don't use [jQuery event alias convenience methods](https://github.com/jquery/jquery/blob/master/src/event/alias.js) (such as `$().focus()`). Instead, use [`$().trigger(eventType, ...)`](http://api.jquery.com/trigger/) or [`$().on(eventType, ...)`](http://api.jquery.com/on/), depending on whether you're firing an event or listening for an event. (For example, `$().trigger('focus')` or `$().on('focus', function (event) { /* handle focus event */ })`) We do this to be compatible with custom builds of jQuery where the event aliases module has been excluded. ### Checking coding style |
