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
Eugene Shen
todomvc
Commits
f990a4a8
Commit
f990a4a8
authored
Aug 03, 2012
by
Sébastien Chopin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add point in comments.
parent
67be50ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
architecture-examples/backbone/js/models/todo.js
architecture-examples/backbone/js/models/todo.js
+2
-2
architecture-examples/backbone/js/views/todos.js
architecture-examples/backbone/js/views/todos.js
+1
-1
No files found.
architecture-examples/backbone/js/models/todo.js
View file @
f990a4a8
...
...
@@ -7,8 +7,8 @@
// Our basic **Todo** model has `title`, `order`, and `completed` attributes.
window
.
app
.
Todo
=
Backbone
.
Model
.
extend
({
// Default attributes for the todo
.
//
Ensure that each todo created has `title` and `completed` keys
// Default attributes for the todo
//
and ensure that each todo created has `title` and `completed` keys.
defaults
:
{
title
:
''
,
completed
:
false
...
...
architecture-examples/backbone/js/views/todos.js
View file @
f990a4a8
...
...
@@ -70,7 +70,7 @@ $(function() {
}
},
// Remove the item, destroy the model from *localStorage* and delete its view
// Remove the item, destroy the model from *localStorage* and delete its view
.
clear
:
function
()
{
this
.
model
.
destroy
();
}
...
...
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