remove completion actions/reducer

This commit is contained in:
Shin'ya Ueoka 2017-10-07 07:51:39 +09:00
parent 4cb17031d1
commit 45368384d1
13 changed files with 206 additions and 261 deletions

View file

@ -6,15 +6,15 @@ export default class Completion {
}
update() {
let state = this.store.getState().completion;
let state = this.store.getState().console;
if (JSON.stringify(this.prevState) === JSON.stringify(state)) {
return;
}
this.wrapper.innerHTML = '';
for (let i = 0; i < state.groups.length; ++i) {
let group = state.groups[i];
for (let i = 0; i < state.completions.length; ++i) {
let group = state.completions[i];
let title = this.createCompletionTitle(group.name);
this.wrapper.append(title);