OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #import "TodoItem.h" | 5 #import "TodoItem.h" |
6 | 6 |
7 @implementation TodoItem | 7 @implementation TodoItem |
8 | 8 |
9 - (void)dispatchDeleteEvent { | 9 - (void)dispatchDeleteEvent { |
10 TodoMVCPresenter::dispatch(self.deleteEvent); | 10 TodoMVCPresenter::dispatch(self.deleteEvent); |
11 } | 11 } |
12 | 12 |
13 - (void)dispatchCompleteEvent { | 13 - (void)dispatchCompleteEvent { |
14 TodoMVCPresenter::dispatch(self.completeEvent); | 14 TodoMVCPresenter::dispatch(self.completeEvent); |
15 } | 15 } |
16 | 16 |
17 - (void)dispatchUncompleteEvent { | 17 - (void)dispatchUncompleteEvent { |
18 TodoMVCPresenter::dispatch(self.uncompleteEvent); | 18 TodoMVCPresenter::dispatch(self.uncompleteEvent); |
19 } | 19 } |
20 | 20 |
21 @end | 21 @end |
OLD | NEW |