#1405 closed defect (fixed)
dojo.event.browser.* toLowerCase() causes problems with case sensative event names
Reported by: | Owned by: | alex | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Events | Version: | 0.2 |
Keywords: | addListener DOMMouseScroll toLowerCase | Cc: | |
Blocked By: | Blocking: |
Description
In both dojo.event.browser.addListener() and dojo.event.browser.removeListener(), the "evtName" is forced to lower case. This causes problems when adding/removing listeners to Mozilla's "DOMMouseScroll" event. Commenting the toLowerCase() lines works, but Alex Russell suggested white listing all case sensative event handler names.
According to XULPlanet, the following event names should be white listed:
CheckboxStateChange DOMAttrModified DOMMenuItemActive DOMMenuItemInactive DOMMouseScroll DOMNodeInserted DOMNodeRemoved RadioStateChange
dojo.event.connect may also be affected, but I haven't investigated.
Current workaround is to modify the dojo source and comment out the offending lines.
Change History (4)
comment:1 Changed 14 years ago by
severity: | major → blocker |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|
Note: See
TracTickets for help on using
tickets.
(In [6204]) dojo.event.browser.* toLowerCase() causes problems with case sensative event names, fixes #1405