From f83f1ee0ce7a1df2389e2773e1ff40c7ec77daf8 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Mon, 25 May 2015 16:29:15 +0800 Subject: [PATCH] fix(example): unused event --- modules/examples/src/todo/index.ts | 2 +- modules/examples/src/todo/todo.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/examples/src/todo/index.ts b/modules/examples/src/todo/index.ts index 5d7a3874f8..d88a362d22 100644 --- a/modules/examples/src/todo/index.ts +++ b/modules/examples/src/todo/index.ts @@ -10,7 +10,7 @@ class TodoApp { constructor(public todoStore: Store, public factory: TodoFactory) {} - enterTodo($event, inputElement): void { + enterTodo(inputElement): void { this.addTodo(inputElement.value); inputElement.value = ''; } diff --git a/modules/examples/src/todo/todo.html b/modules/examples/src/todo/todo.html index 2637145850..8ef455373e 100644 --- a/modules/examples/src/todo/todo.html +++ b/modules/examples/src/todo/todo.html @@ -9,7 +9,7 @@ placeholder="What needs to be done?" autofocus #newtodo - (keyup.enter)="enterTodo($event, newtodo)"> + (keyup.enter)="enterTodo(newtodo)">