From 4e8546863c52fc754d1612b1482a72f9dfd39d72 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sun, 19 Feb 2017 09:11:17 -0500 Subject: [PATCH] remove unnecessary calls() --- lib/monitor.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/monitor.js b/lib/monitor.js index c89a44b8..cf7626d4 100644 --- a/lib/monitor.js +++ b/lib/monitor.js @@ -29,13 +29,13 @@ CommandHistory.prototype.getNextCommand = function(cmd) { }; 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.console = options.console; this.history = new CommandHistory(); - this.color = options && options.color || "green"; - this.minimal = options && options.minimal || false; + this.color = (options && options.color) || "green"; + this.minimal = (options && options.minimal) || false; this.screen = blessed.screen({ smartCSR: true, @@ -45,10 +45,10 @@ function Dashboard(options) { autoPadding: true }); - this.layoutLog.call(this); - this.layoutStatus.call(this); - this.layoutModules.call(this); - this.layoutCmd.call(this); + this.layoutLog(); + this.layoutStatus(); + this.layoutModules(); + this.layoutCmd(); this.screen.key(["C-c"], function() { process.exit(0);