Commit e247d4e9 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #697 from DC3/spine-clearCompleted-issue

fix clearCompleted method variable name conflict.
parents acf5b140 e82fa1a6
......@@ -26,7 +26,7 @@
TodoApp.prototype.events = {
'keyup #new-todo': 'new',
'click #toggle-all': 'toggleAll',
'click #clear-completed': 'clearCompleted'
'click #clear-completed': 'clearCompletedItem'
};
function TodoApp() {
......@@ -107,7 +107,7 @@
});
};
TodoApp.prototype.clearCompleted = function() {
TodoApp.prototype.clearCompletedItem = function() {
return Todo.destroyCompleted();
};
......
......@@ -14,7 +14,7 @@ class TodoApp extends Spine.Controller
events:
'keyup #new-todo': 'new'
'click #toggle-all': 'toggleAll'
'click #clear-completed': 'clearCompleted'
'click #clear-completed': 'clearCompletedItem'
constructor: ->
super
......@@ -65,7 +65,7 @@ class TodoApp extends Spine.Controller
todo.updateAttribute 'completed', e.target.checked
todo.trigger 'update', todo
clearCompleted: ->
clearCompletedItem: ->
Todo.destroyCompleted()
toggleElems: =>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment