fixup! Call context menu item ::created hooks with the click event

This commit is contained in:
Nathan Sobo 2014-09-29 16:28:31 -06:00
parent 703197bcca
commit aec6df828e

View File

@ -27,9 +27,9 @@ class ContextMenuManager
@add '.workspace': [{
label: 'Inspect Element'
command: 'application:inspect'
created: (item, event) ->
created: (event) ->
{pageX, pageY} = event
item.commandOptions = {x: pageX, y: pageY}
@commandOptions = {x: pageX, y: pageY}
}]
atom.keymaps.onDidLoadBundledKeymaps => @loadPlatformItems()