* Some code cleanup

+ Bit of skeleton for TickerTextView
* Detach of events in ViewController
This commit is contained in:
Bryan Ashby 2014-11-04 00:34:54 -07:00
parent eaf2aae48d
commit d242546458
5 changed files with 104 additions and 4 deletions

View file

@ -36,7 +36,7 @@ function MenuView(client, options) {
this.justify = this.options.justify || 'none';
this.moveSelection = function(fromIndex, toIndex) {
assert(!self.xPositionCacheExpired);
assert(!self.positionCacheExpired);
assert(fromIndex >= 0 && fromIndex <= self.items.length);
assert(toIndex >= 0 && toIndex <= self.items.length);
@ -48,13 +48,14 @@ function MenuView(client, options) {
self.drawItem(toIndex);
};
/*
this.cachePositions = function() {
// :TODO: implement me!
};
this.drawItem = function(index) {
// :TODO: implement me!
};
};*/
}
util.inherits(MenuView, View);