diff --git a/js/menus/otherUI/Console.js b/js/menus/otherUI/Console.js index 7dbeea40f780f808d937d725fa72303807e668b8..3e09e5f2316a94e86701cc9abe10bf44e59ea066 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/>"); },