type:"text",value:function(a){returna.title},onblur:function(a){returntodos.actions.edit_blur(a.id)},onkeypress:function(a){returntodos.actions.edit_keypress(a.id)}}]]]);vartodos=todos||{};todos.views=todos.views||{};todos.views.Tasks=duel(["","",["$if",{test:function(a){returna.tasks.length}},["section",{id:"main"},"",["input",{id:"toggle-all",type:"checkbox",checked:function(a){return!a.stats.active},onchange:function(){returntodos.actions.toggle_change}}],"",["label",{"for":"toggle-all"},"Mark all as complete"],"",["ul",{id:"todo-list"},"",["$for",{each:function(a){returna.tasks}},"",["$call",{view:function(){returntodos.views.Task}}]],""]]]]);vartodos=todos||{};todos.views=todos.views||{};todos.views.TodoApp=duel(["section",{id:"todoapp"},"",["header",{id:"header"},"",["h1","todos"],"",["input",{id:"new-todo",placeholder:"What needs to be done?",autofocus:null,onblur:function(){returntodos.actions.add_blur},onkeypress:function(){returntodos.actions.add_keypress}}],""],"",["$call",{view:function(){returntodos.views.Tasks},data:function(a){returna}}],"",["$call",{view:function(){returntodos.views.Stats},data:function(a){returna.stats}}]]);vartodos=todos||{};