Commit b19fe1c4 authored by addyosmani's avatar addyosmani

very minor change for consistency in comment spacing/casing

parent 75823530
...@@ -213,26 +213,26 @@ function redrawTodosUI() { ...@@ -213,26 +213,26 @@ function redrawTodosUI() {
for ( i= 0; i < todos.length; i++ ) { for ( i= 0; i < todos.length; i++ ) {
todo = todos[i]; todo = todos[i];
//create checkbox // create checkbox
checkbox = document.createElement( 'input' ); checkbox = document.createElement( 'input' );
checkbox.className = 'toggle'; checkbox.className = 'toggle';
checkbox.setAttribute( 'data-todo-id', todo.id ); checkbox.setAttribute( 'data-todo-id', todo.id );
checkbox.type = 'checkbox'; checkbox.type = 'checkbox';
checkbox.addEventListener( 'change', checkboxChangeHandler ); checkbox.addEventListener( 'change', checkboxChangeHandler );
//create div text // create div text
label = document.createElement( 'label' ); label = document.createElement( 'label' );
label.setAttribute( 'data-todo-id', todo.id ); label.setAttribute( 'data-todo-id', todo.id );
label.appendChild( document.createTextNode( todo.title ) ); label.appendChild( document.createTextNode( todo.title ) );
//create delete button // create delete button
deleteLink = document.createElement( 'button' ); deleteLink = document.createElement( 'button' );
deleteLink.className = 'destroy'; deleteLink.className = 'destroy';
deleteLink.setAttribute( 'data-todo-id', todo.id ); deleteLink.setAttribute( 'data-todo-id', todo.id );
deleteLink.addEventListener( 'click', spanDeleteClickHandler ); deleteLink.addEventListener( 'click', spanDeleteClickHandler );
//create divDisplay // create divDisplay
divDisplay = document.createElement( 'div' ); divDisplay = document.createElement( 'div' );
divDisplay.className = 'view'; divDisplay.className = 'view';
divDisplay.setAttribute( 'data-todo-id', todo.id ); divDisplay.setAttribute( 'data-todo-id', todo.id );
...@@ -242,7 +242,7 @@ function redrawTodosUI() { ...@@ -242,7 +242,7 @@ function redrawTodosUI() {
divDisplay.addEventListener( 'dblclick', todoContentHandler ); divDisplay.addEventListener( 'dblclick', todoContentHandler );
//create todo input // create todo input
inputEditTodo = document.createElement( 'input' ); inputEditTodo = document.createElement( 'input' );
inputEditTodo.id = 'input_' + todo.id; inputEditTodo.id = 'input_' + todo.id;
inputEditTodo.className = 'edit'; inputEditTodo.className = 'edit';
...@@ -251,7 +251,7 @@ function redrawTodosUI() { ...@@ -251,7 +251,7 @@ function redrawTodosUI() {
inputEditTodo.addEventListener( 'blur', inputEditTodoBlurHandler ); inputEditTodo.addEventListener( 'blur', inputEditTodoBlurHandler );
//create li // create li
li = document.createElement( 'li' ); li = document.createElement( 'li' );
li.id = 'li_' + todo.id; li.id = 'li_' + todo.id;
li.appendChild( divDisplay ); li.appendChild( divDisplay );
...@@ -297,7 +297,7 @@ function drawTodoCount() { ...@@ -297,7 +297,7 @@ function drawTodoCount() {
var number, var number,
theText, theText,
remaining; remaining;
// Create remaining count // create remaining count
number = document.createElement( 'strong' ); number = document.createElement( 'strong' );
number.innerHTML = stat.todoLeft; number.innerHTML = stat.todoLeft;
theText = ' item'; theText = ' item';
......
...@@ -9,7 +9,7 @@ Read the [App Specification](https://github.com/addyosmani/todomvc/wiki/App-Spec ...@@ -9,7 +9,7 @@ Read the [App Specification](https://github.com/addyosmani/todomvc/wiki/App-Spec
## Need help? ## Need help?
Feel free to [contact me](https://github.com/sindresorhus) if you have any questions or need help with the template. Feel free to [contact us](https://github.com/sindresorhus) if you have any questions or need help with the template.
## Credit ## Credit
......
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