popContextMenu => popUpContextMenu
This commit is contained in:
parent
225140bd64
commit
33eadad139
10 changed files with 19 additions and 15 deletions
|
@ -3,8 +3,12 @@ bindings = process.atomBinding 'tray'
|
|||
|
||||
Tray = bindings.Tray
|
||||
Tray::__proto__ = EventEmitter.prototype
|
||||
|
||||
Tray::setContextMenu = (menu) ->
|
||||
@_setContextMenu menu
|
||||
@menu = menu # Keep a strong reference of menu.
|
||||
|
||||
# Keep compatibility with old APIs.
|
||||
Tray::popContextMenu = Tray::popUpContextMenu
|
||||
|
||||
module.exports = Tray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue