examples/todolist/js/main.js
function($li, model) {
                $li.attr('todo-cid', model.cid);
                $li.toggleClass('todo-done', model.done);
                $li.text(model.title);
            }
function($li, model) {
                $li.attr('todo-cid', model.cid);
                $li.toggleClass('todo-done', model.done);
                $li.text(model.title);
            }
function ( $li , model ) { $li . attr ( 'todo-cid' , model . cid ) ; $li . toggleClass ( 'todo-done' , model . done ) ; $li . text ( model . title ) ; }
Change a row in the list
Change a row in the list