* 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

@ -19,9 +19,11 @@ function SpinnerMenuView(options) {
var self = this;
/*
this.cachePositions = function() {
self.positionCacheExpired = false;
};
*/
this.updateSelection = function() {
assert(!self.positionCacheExpired);
@ -52,7 +54,7 @@ util.inherits(SpinnerMenuView, MenuView);
SpinnerMenuView.prototype.redraw = function() {
SpinnerMenuView.super_.prototype.redraw.call(this);
this.cachePositions();
//this.cachePositions();
this.drawItem(this.focusedItemIndex);
};