electron/atom/browser/api/lib/tray.coffee

15 lines
362 B
CoffeeScript
Raw Normal View History

2014-05-30 15:57:54 +00:00
EventEmitter = require('events').EventEmitter
bindings = process.atomBinding 'tray'
Tray = bindings.Tray
Tray::__proto__ = EventEmitter.prototype
2015-08-10 05:00:15 +00:00
2014-05-30 15:57:54 +00:00
Tray::setContextMenu = (menu) ->
@_setContextMenu menu
@menu = menu # Keep a strong reference of menu.
2015-08-10 05:00:15 +00:00
# Keep compatibility with old APIs.
Tray::popContextMenu = Tray::popUpContextMenu
2014-05-30 15:57:54 +00:00
module.exports = Tray