1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Remove unused code and retab

This commit is contained in:
Gabe Cohen 2017-12-14 07:01:00 -06:00
parent 89ef33f7ca
commit 3bf9d01f0a

View File

@ -14,10 +14,6 @@ class StatusBarWidget extends BaseWidget {
this.inputEventEmitter_ = null;
this.history_ = [];
this.items_ = [];
this.autocomplete_ = null;
app().commandNames().then(function(names){
this.autocomplete_ = names;
}.bind(this));
}
get name() {
@ -28,7 +24,7 @@ class StatusBarWidget extends BaseWidget {
return false;
}
setItemAt(index, text) {
setItemAt(index, text) {
this.items_[index] = stripAnsi(text).trim();
this.invalidate();
}
@ -114,9 +110,9 @@ class StatusBarWidget extends BaseWidget {
cancelable: true,
history: this.history,
default: this.promptState_.initialText,
autoComplete: handleAutocompletion,
autoCompleteMenu: true,
autoCompleteHint : true,
autoComplete: handleAutocompletion,
autoCompleteMenu: true,
autoCompleteHint : true,
};
if ('cursorPosition' in this.promptState_) options.cursorPosition = this.promptState_.cursorPosition;