import {TodoItems} from 'services/todo-items';

export class TodoList {
  static inject = [TodoItems];
  constructor(todoitems) {
    this.items = todoitems.items;
  }
  completeAll() {
    var that = this;
    this.items.forEach(item => {
      that.setCompleted(item, true);
    });
  }
  removeItem(item) {
    this.items.splice(this.items.indexOf(item), 1);
  }
}

@@ -183,29 +183,8 @@
 ) %7B%0A
-    var that = this;%0A
     
@@ -222,25 +222,22 @@
     
-that.setC
+item.c
 ompleted
 (ite
@@ -236,20 +236,15 @@
 eted
-(item,
+ =
  true
-)
 ;%0A  

Fix set complete all