a.innerHTML=m.template(this.template,this.frameworkJSON);a.className="learn";varc=a.querySelectorAll(".demo-link");Array.prototype.forEach.call(c,function(a){a.setAttribute("href",j()+a.getAttribute("href"))});document.body.className=(document.body.className+" learn-bar").trim();document.body.insertAdjacentHTML("afterBegin",a.outerHTML)};if("tastejs.github.io"===location.hostname)location.href=location.href.replace("tastejs.github.io/todomvc","todomvc.com");(function(a,c){if(!location.host)returnconsole.info("Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.");
document.body.className=(document.body.className+" learn-bar").trim();document.body.insertAdjacentHTML("afterBegin",b.outerHTML)};if("tastejs.github.io"===location.hostname)location.href=location.href.replace("tastejs.github.io/todomvc","todomvc.com");(function(a,b){if(!location.host)returnconsole.info("Miss the info bar? Run TodoMVC from a server to avoid a cross-origin error.");varc=newXMLHttpRequest;c.open("GET",i()+a,!0);c.send();c.onload=function(){200===c.status&&b&&b(c.responseText)}})("learn.json",
f)})();/*
DUEL v0.8.2 http://duelengine.org
Copyright (c)2006-2012 Stephen M. McKamey.
Licensed under The MIT License.
...
...
@@ -25,7 +26,7 @@ u=function(a){return n(a)&&n(a.getView)?a:J(a)};u.raw=function(a){return new x(a
{"class":"edit",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||{};