Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
e247d4e9
Commit
e247d4e9
authored
Oct 16, 2013
by
Sindre Sorhus
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #697 from DC3/spine-clearCompleted-issue
fix clearCompleted method variable name conflict.
parents
acf5b140
e82fa1a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
architecture-examples/spine/js/app.js
architecture-examples/spine/js/app.js
+2
-2
architecture-examples/spine/src/app.coffee
architecture-examples/spine/src/app.coffee
+2
-2
No files found.
architecture-examples/spine/js/app.js
View file @
e247d4e9
...
...
@@ -26,7 +26,7 @@
TodoApp
.
prototype
.
events
=
{
'
keyup #new-todo
'
:
'
new
'
,
'
click #toggle-all
'
:
'
toggleAll
'
,
'
click #clear-completed
'
:
'
clearCompleted
'
'
click #clear-completed
'
:
'
clearCompleted
Item
'
};
function
TodoApp
()
{
...
...
@@ -107,7 +107,7 @@
});
};
TodoApp
.
prototype
.
clearCompleted
=
function
()
{
TodoApp
.
prototype
.
clearCompleted
Item
=
function
()
{
return
Todo
.
destroyCompleted
();
};
...
...
architecture-examples/spine/src/app.coffee
View file @
e247d4e9
...
...
@@ -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'
:
'clearCompleted
Item
'
constructor
:
->
super
...
...
@@ -65,7 +65,7 @@ class TodoApp extends Spine.Controller
todo
.
updateAttribute
'completed'
,
e
.
target
.
checked
todo
.
trigger
'update'
,
todo
clearCompleted
:
->
clearCompleted
Item
:
->
Todo
.
destroyCompleted
()
toggleElems
:
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment