#14568 closed enhancement (fixed)
Reduce event handlers created by _CssStateMixin
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.8 |
Component: | Dijit | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
_CssStateMixin creates a lot of listeners (3 or more per widget) for tracking hover and active state. For 2.0 I'd like to remove that code and instead use CSS :hover and :active pseudo-classes, but it's hard to remove all the CSS class settings like dijitButtonHover in 1.0, because that would break user's custom CSS.
The code, however, can be modified to create less listeners:
- monitor for widget level events on dojo.body()
- for Tree, monitor for hover/unhover on Tree rows at Tree rather than from TreeNode
- the Menu changes already done in #7111
- etc.
Note: See
TracTickets for help on using
tickets.
In [27504]: