Skip to content

Commit b19fe1c

Browse files
committed
very minor change for consistency in comment spacing/casing
1 parent 7582353 commit b19fe1c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

reference-examples/vanillajs/js/app.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,26 +213,26 @@ function redrawTodosUI() {
213213
for ( i= 0; i < todos.length; i++ ) {
214214
todo = todos[i];
215215

216-
//create checkbox
216+
// create checkbox
217217
checkbox = document.createElement( 'input' );
218218
checkbox.className = 'toggle';
219219
checkbox.setAttribute( 'data-todo-id', todo.id );
220220
checkbox.type = 'checkbox';
221221
checkbox.addEventListener( 'change', checkboxChangeHandler );
222222

223-
//create div text
223+
// create div text
224224
label = document.createElement( 'label' );
225225
label.setAttribute( 'data-todo-id', todo.id );
226226
label.appendChild( document.createTextNode( todo.title ) );
227227

228228

229-
//create delete button
229+
// create delete button
230230
deleteLink = document.createElement( 'button' );
231231
deleteLink.className = 'destroy';
232232
deleteLink.setAttribute( 'data-todo-id', todo.id );
233233
deleteLink.addEventListener( 'click', spanDeleteClickHandler );
234234

235-
//create divDisplay
235+
// create divDisplay
236236
divDisplay = document.createElement( 'div' );
237237
divDisplay.className = 'view';
238238
divDisplay.setAttribute( 'data-todo-id', todo.id );
@@ -242,7 +242,7 @@ function redrawTodosUI() {
242242
divDisplay.addEventListener( 'dblclick', todoContentHandler );
243243

244244

245-
//create todo input
245+
// create todo input
246246
inputEditTodo = document.createElement( 'input' );
247247
inputEditTodo.id = 'input_' + todo.id;
248248
inputEditTodo.className = 'edit';
@@ -251,7 +251,7 @@ function redrawTodosUI() {
251251
inputEditTodo.addEventListener( 'blur', inputEditTodoBlurHandler );
252252

253253

254-
//create li
254+
// create li
255255
li = document.createElement( 'li' );
256256
li.id = 'li_' + todo.id;
257257
li.appendChild( divDisplay );
@@ -297,7 +297,7 @@ function drawTodoCount() {
297297
var number,
298298
theText,
299299
remaining;
300-
// Create remaining count
300+
// create remaining count
301301
number = document.createElement( 'strong' );
302302
number.innerHTML = stat.todoLeft;
303303
theText = ' item';

template/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Read the [App Specification](https://github.com/addyosmani/todomvc/wiki/App-Spec
99

1010
## Need help?
1111

12-
Feel free to [contact me](https://github.com/sindresorhus) if you have any questions or need help with the template.
12+
Feel free to [contact us](https://github.com/sindresorhus) if you have any questions or need help with the template.
1313

1414

1515
## Credit

0 commit comments

Comments
 (0)