remove unnecessary calls()
This commit is contained in:
parent
1d42d6d934
commit
4e8546863c
|
@ -29,13 +29,13 @@ CommandHistory.prototype.getNextCommand = function(cmd) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function Dashboard(options) {
|
function Dashboard(options) {
|
||||||
var title = options && options.title || "Embark 2.0";
|
var title = (options && options.title) || "Embark 2.3.0";
|
||||||
this.env = options.env;
|
this.env = options.env;
|
||||||
this.console = options.console;
|
this.console = options.console;
|
||||||
this.history = new CommandHistory();
|
this.history = new CommandHistory();
|
||||||
|
|
||||||
this.color = options && options.color || "green";
|
this.color = (options && options.color) || "green";
|
||||||
this.minimal = options && options.minimal || false;
|
this.minimal = (options && options.minimal) || false;
|
||||||
|
|
||||||
this.screen = blessed.screen({
|
this.screen = blessed.screen({
|
||||||
smartCSR: true,
|
smartCSR: true,
|
||||||
|
@ -45,10 +45,10 @@ function Dashboard(options) {
|
||||||
autoPadding: true
|
autoPadding: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.layoutLog.call(this);
|
this.layoutLog();
|
||||||
this.layoutStatus.call(this);
|
this.layoutStatus();
|
||||||
this.layoutModules.call(this);
|
this.layoutModules();
|
||||||
this.layoutCmd.call(this);
|
this.layoutCmd();
|
||||||
|
|
||||||
this.screen.key(["C-c"], function() {
|
this.screen.key(["C-c"], function() {
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
Loading…
Reference in New Issue