- Remove inputType from previous check in. Will replace with MaskEditTextView stuff

* Cleanup self.options in Views. Just use self.XXXXXX and pass in options to configure
* View's take one param for ctor: options. Including options.client
* Experimental / WIP cursor show/hide in Views
This commit is contained in:
Bryan Ashby 2015-04-08 22:54:13 -06:00
parent 6d84018ef5
commit 2bac8e006e
10 changed files with 123 additions and 81 deletions

View file

@ -10,13 +10,13 @@ var assert = require('assert');
exports.TickerTextView = TickerTextView;
function TickerTextView(client, options) {
View.call(this, client, options);
function TickerTextView(options) {
View.call(this, options);
var self = this;
this.text = this.options.text || '';
this.tickerStyle = this.options.tickerStyle || 'rightToLeft';
this.text = options.text || '';
this.tickerStyle = options.tickerStyle || 'rightToLeft';
assert(this.tickerStyle in TickerTextView.TickerStyles);
// :TODO: Ticker |text| should have ANSI stripped before calculating any lengths/etc.