From d314bb612ff7920fa10cde9ab784e107bd82e916 Mon Sep 17 00:00:00 2001 From: Amanda Ghassaei <amandaghassaei@gmail.com> Date: Mon, 26 Oct 2015 19:49:25 -0400 Subject: [PATCH] small changes --- js/menus/otherUI/Console.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/menus/otherUI/Console.js b/js/menus/otherUI/Console.js index 7dbeea40..3e09e5f2 100644 --- a/js/menus/otherUI/Console.js +++ b/js/menus/otherUI/Console.js @@ -34,10 +34,14 @@ define(['jquery', 'underscore', 'backbone', 'appState'], function($, _, Backbone }, _setVisibility: function(){ - if (appState.get("consoleIsVisible")) this._show(); + if (this._isVisible()) this._show(); else this._hide(); }, + _isVisible: function(){ + return appState.get("consoleIsVisible"); + }, + write: function(string){ this._writeOutput(string + "<br/>"); }, -- GitLab