Skip to content

Commit aa76b5b

Browse files
committed
refactor(app): remove comments
1 parent 2238c18 commit aa76b5b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import TodoItemView from "./todo-item-view.js"
22
import TodoItem from "./todo-item-model.js"
3+
34
$(function () {
45
var $form = $('.todoForm');
56
var $list = $('.todoList');
67

7-
88
function createTodoItem(text) {
99
var model = new TodoItem({
1010
title: text

src/todo-item-view.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
var {View} = Backbone;
44
class TodoItemView extends View {
55
constructor(options) {
6-
// *... is a list tag.*
76
this.tagName = 'li';
7+
88
// *Cache the template function for a single item.*
99
this.template = _.template(`
1010
<input type="checkbox" class="<%= completed ? 'is-complete' : '' %>" <%= completed ? 'checked' : '' %>>
1111
<span class="todoText"><%- title %></span>
1212
<i class="removeBtn fa fa-times"></i>
1313
`);
14-
this.input = '';
1514
// *Define the DOM events specific to an item.*
1615
this.events = {
1716
'click input': 'toggleComplete',

0 commit comments

Comments
 (0)