Commit f990a4a8 authored by Sébastien Chopin's avatar Sébastien Chopin

Add point in comments.

parent 67be50ca
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
// Our basic **Todo** model has `title`, `order`, and `completed` attributes. // Our basic **Todo** model has `title`, `order`, and `completed` attributes.
window.app.Todo = Backbone.Model.extend({ window.app.Todo = Backbone.Model.extend({
// Default attributes for the todo. // Default attributes for the todo
// Ensure that each todo created has `title` and `completed` keys // and ensure that each todo created has `title` and `completed` keys.
defaults: { defaults: {
title: '', title: '',
completed: false completed: false
......
...@@ -70,7 +70,7 @@ $(function() { ...@@ -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() { clear: function() {
this.model.destroy(); this.model.destroy();
} }
......
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