lib/dialog.js
function init(type) {  // {{{2
  O.ui.updateHistory();

  O.inherited(this)('html5-dialog' + (type ? '-' + type : ''));

  this.appendTo(document.body);

  O.ui.newHistory();
  this.lastHistory = O.ui.lastHistory;

  this.hook();

  this.type = type;

  if (! O.ui.dialogs) {
    O.ui.dialogs = [];
  }
  O.ui.dialogs.push(this);

  this.on('removed', removed.bind(this));
  this.on('closed', closed.bind(this));
}
function init(type) {  // {{{2
  O.ui.updateHistory();

  O.inherited(this)('html5-dialog' + (type ? '-' + type : ''));

  this.appendTo(document.body);

  O.ui.newHistory();
  this.lastHistory = O.ui.lastHistory;

  this.hook();

  this.type = type;

  if (! O.ui.dialogs) {
    O.ui.dialogs = [];
  }
  O.ui.dialogs.push(this);

  this.on('removed', removed.bind(this));
  this.on('closed', closed.bind(this));
}
Public {{{1