examples/todo/js/behaviors/todo.js
function(todoEl) {
			var todoId = getClosestTodoId(todoEl),
				editInputEl = todoEl.querySelector('.edit'),
				title = todosDB.get(todoId).title; // Grab current label

			// Set the edit input value to current label
			editInputEl.value = title;

			todoEl.classList.add('editing');

			// Place user cursor in the input
			editInputEl.focus();
		}
function(todoEl) {
			var todoId = getClosestTodoId(todoEl),
				editInputEl = todoEl.querySelector('.edit'),
				title = todosDB.get(todoId).title; // Grab current label

			// Set the edit input value to current label
			editInputEl.value = title;

			todoEl.classList.add('editing');

			// Place user cursor in the input
			editInputEl.focus();
		}
function ( todoEl ) { var todoId = getClosestTodoId ( todoEl ) , editInputEl = todoEl . querySelector ( '.edit' ) , title = todosDB . get ( todoId ) . title ; // Grab current label // Set the edit input value to current label editInputEl . value = title ; todoEl . classList . add ( 'editing' ) ; // Place user cursor in the input editInputEl . focus ( ) ; }
Displays a input box for the user to edit the label with
@param {HTMLElement} todoEl The todo element to edit
@returns {void}
Displays a input box for the user to edit the label with