* Lots of minor code cleanup

* WIP work on HorizontalMenuView
* Initial art for HorizontalMenuView demo
This commit is contained in:
Bryan Ashby 2015-06-30 22:45:27 -06:00
parent c87c0d69b7
commit d346fe72ee
11 changed files with 114 additions and 66 deletions

View file

@ -18,9 +18,11 @@ function ToggleMenuView (options) {
var self = this;
/*
this.cachePositions = function() {
self.positionCacheExpired = false;
};
*/
this.updateSelection = function() {
assert(!self.positionCacheExpired);
@ -35,7 +37,7 @@ util.inherits(ToggleMenuView, MenuView);
ToggleMenuView.prototype.redraw = function() {
ToggleMenuView.super_.prototype.redraw.call(this);
this.cachePositions();
//this.cachePositions();
this.client.term.write(this.hasFocus ? this.getFocusSGR() : this.getSGR());