Context menus can now handle different types and commands, as well as submenus

This commit is contained in:
Erik Håkansson
2014-05-10 01:21:43 +02:00
parent 00987f3642
commit 3c8bfb8bc8
2 changed files with 8 additions and 1 deletions

View File

@@ -19,4 +19,6 @@ class ContextMenu
do (item) =>
item.click = =>
global.atomApplication.sendCommandToWindow(item.command, @atomWindow, item.commandOptions)
else if item.submenu
@createClickHandlers(item.submenu)
item