-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] dropdown events not properly attached #1012
Comments
Comment by njx I think the standard way to do delegate/live in jQuery 1.7 is |
Comment by njx BTW, it looks we can't actually assign bugs to people outside the Adobe org :) If you do pick this up, just comment that you've started working on it. Marking "medium priority" and sprint 10 since it's related to menu work we're doing in this sprint. |
Comment by jrowny Oh yea, I forgot on took over. Okay, I'll start working on it this weekend using "on." |
Comment by peterflynn Side note: besides being deprecated, live() also supposedly has serious performance problems because it listens for the event document-wide and then filters each one. (Unlike delegate(), which I think is merely deprecated). |
Comment by jrowny I made the pull: adobe/brackets#1021 |
Issue by jrowny
Friday Jun 08, 2012 at 20:09 GMT
Originally opened as adobe/brackets#1018
In menu.js on line 626, a few events are attached to the menu but they are not done so using live. If you use "addMenu" to add a new menu, these events don't get triggered. They need to be changed to live.
Specifically the two events are "mousedown" to prevent loosing focus and "mouseenter" to automatically open a menu if another is already opened.
To reproduce the bug, use
menu = addMenu("Some-Item", "Some Menu"
andmenu.addMenuItem("new-menu", Commands.WHATEVER);
in an extension or somehwere after the menu has loaded.I will create a pull request to change this to "live" sometime this weekend if I get time. You can assign this to me if you want.
The text was updated successfully, but these errors were encountered: