10 lines
278 B
CoffeeScript
10 lines
278 B
CoffeeScript
EventEmitter = require('events').EventEmitter
|
|
bindings = process.atomBinding 'tray'
|
|
|
|
Tray = bindings.Tray
|
|
Tray::__proto__ = EventEmitter.prototype
|
|
Tray::setContextMenu = (menu) ->
|
|
@_setContextMenu menu
|
|
@menu = menu # Keep a strong reference of menu.
|
|
|
|
module.exports = Tray
|