todos.views.Tasks=duel(["","",["$if",{test:function(a){returna.tasks&&a.tasks.length}},["section",{"class":"main"},"",["input",{"class":"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",{"class":"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",{"class":"todoapp"},"",["header",{"class":"header"},"",["h1","todos"],"",["input",{"class":"new-todo",placeholder:"What needs to be done?",autofocus:!0,onblur:function(){returntodos.actions.add_blur},onkeydown: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||{};