Minor code tidy
This commit is contained in:
parent
a70d865d74
commit
a036f6c6bf
|
@ -62,7 +62,7 @@ function SpinnerMenuView(options) {
|
||||||
text = `${sgr}${strUtil.pad(text, this.dimens.width, this.fillChar, this.justify)}`;
|
text = `${sgr}${strUtil.pad(text, this.dimens.width, this.fillChar, this.justify)}`;
|
||||||
this.client.term.write(`${ansi.goto(this.position.row, this.position.col)}${text}`);
|
this.client.term.write(`${ansi.goto(this.position.row, this.position.col)}${text}`);
|
||||||
this.setRenderCacheItem(index, text, this.hasFocus);
|
this.setRenderCacheItem(index, text, this.hasFocus);
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
util.inherits(SpinnerMenuView, MenuView);
|
util.inherits(SpinnerMenuView, MenuView);
|
||||||
|
|
|
@ -433,7 +433,7 @@ ViewController.prototype.getView = function(id) {
|
||||||
|
|
||||||
ViewController.prototype.hasView = function(id) {
|
ViewController.prototype.hasView = function(id) {
|
||||||
return this.getView(id) ? true : false;
|
return this.getView(id) ? true : false;
|
||||||
}
|
};
|
||||||
|
|
||||||
ViewController.prototype.getViewsByMciCode = function(mciCode) {
|
ViewController.prototype.getViewsByMciCode = function(mciCode) {
|
||||||
if(!Array.isArray(mciCode)) {
|
if(!Array.isArray(mciCode)) {
|
||||||
|
|
Loading…
Reference in New Issue