dashboard/js/lib/ui.js
function Menu() {
  ui.Emitter.call(this);
  this.items = {};
  this.el = $(html).hide().appendTo('body');
  this.el.hover(this.deselect.bind(this));
  $('html').click(this.hide.bind(this));
  this.on('show', this.bindKeyboardEvents.bind(this));
  this.on('hide', this.unbindKeyboardEvents.bind(this));
}
function Menu() {
  ui.Emitter.call(this);
  this.items = {};
  this.el = $(html).hide().appendTo('body');
  this.el.hover(this.deselect.bind(this));
  $('html').click(this.hide.bind(this));
  this.on('show', this.bindKeyboardEvents.bind(this));
  this.on('hide', this.unbindKeyboardEvents.bind(this));
}
function Menu ( ) { ui . Emitter . call ( this ) ; this . items = { } ; this . el = $ ( html ) . hide ( ) . appendTo ( 'body' ) ; this . el . hover ( this . deselect . bind ( this ) ) ; $ ( 'html' ) . click ( this . hide . bind ( this ) ) ; this . on ( 'show' , this . bindKeyboardEvents . bind ( this ) ) ; this . on ( 'hide' , this . unbindKeyboardEvents . bind ( this ) ) ; }
Initialize a new `Menu`.

Emits:

- "show" when shown
- "hide" when hidden
- "remove" with the item name when an item is removed
- * menu item events are emitted when clicked

@api public
Initialize a new Menu .