-
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] Added RemoveMenuItem #1178
Comments
Comment by peterflynn
|
Comment by tpryan
|
Comment by peterflynn
|
Comment by peterflynn Adobe is on break this coming week, but I should be able to review the update within a day or two. |
Comment by tpryan
I work for Adobe too. We shouldn't be having this conversation. |
Comment by peterflynn
So I caved to the vacation pressure and didn't re-review until now. Thanks for all the updates! I had two high-level thoughts on this (which I wish I'd thought of a week ago): First -- can you add a unit test or two to Menu-test.js for the new API? (It already has tests for add: append, insert, etc.) Second -- I think it may be a mistake to cast the API in terms of the internal MenuItem objects' ids instead of commands (or command ids). If you own the code that added the menu item in the first place, you can just hang onto the MenuItem and use its |
Comment by tpryan
As for the API. I'd prefer to pass either a command or commandID like AddMenuItem does. Is that what you're going for? |
Comment by peterflynn Nice meeting you in person yesterday! For anyone else reading: yes, changing it to accept either command or commandID (like |
Comment by tpryan Added the ability to use commands or id's. I have tested, it works, but I can't get the test runner working. Something's borked with my setup. |
Comment by peterflynn
|
Comment by peterflynn Lastly: needs a merge with master. The merge looked pretty clean when I tested it locally, so hopefully that's fairly easy. |
Comment by peterflynn
|
Comment by tpryan
|
Comment by peterflynn Ok, cool. I've opened #2072 with the updated code. |
Issue by tpryan
Friday Jun 29, 2012 at 01:35 GMT
Originally opened as adobe/brackets#1193
Added the ability to remove Menu Items. This should be useful for extension writers. It works for both the vanilla menus and context menus.
tpryan included the following code: https://github.com/adobe/brackets/pull/1193/commits
The text was updated successfully, but these errors were encountered: