Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yonekawa committed Nov 29, 2015
1 parent ed6beae commit bdd3928
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ class TodoStore : Store {
}

init() {
ActionCreator.dispatcher.register(TodoAction.List.self) { (result) -> Void in
ActionCreator.dispatcher.register(TodoAction.List.self) { (result) in
switch result {
case .Success(let box):
self.todo = box
self.eventEmitter.emit(TodoEvent.Created)
case .Failure(let box):
NSLog("error \(box)")
case .Success(let value):
self.todos.append(value)
self.eventEmitter.emit(.Created)
case .Failure(let error):
NSLog("error \(error)")
break;
}
}
Expand Down

0 comments on commit bdd3928

Please sign in to comment.