whole_func_string: 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));
  }
func_code_string: 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));
  }
func_documentation_string: Public {{{1