mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-23 19:20:41 +02:00
* Some code cleanup
+ Bit of skeleton for TickerTextView * Detach of events in ViewController
This commit is contained in:
parent
eaf2aae48d
commit
d242546458
5 changed files with 104 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue