YUI.add("moodle-mod_assign-history",function(e,t){var n={LINK:"mod-assign-history-link",OPEN:"mod-assign-history-link-open",CLOSED:"mod-assign-history-link-closed",PANEL:"mod-assign-history-panel"},r=0,i=function(){var t=this.get("for"),r=e.one("#"+t);this.hasClass(n.OPEN)?(this.removeClass(n.OPEN),this.addClass(n.CLOSED),this.setStyle("overflow","hidden"),r.hide()):(this.removeClass(n.CLOSED),this.addClass(n.OPEN),r.show())},s=function(){var t=null,s=null,o=null,u=this;this.get("children").each(function(){t?(r++,o=e.Node.create("<a/>"),s=this,u.insertBefore(o,t),t.remove(!1),o.appendChild(t),s.get("id")||s.set("id",n.PANEL+r),o.set("for",s.get("id")),s.set("aria-live","polite"),o.addClass(n.LINK),r==1?o.addClass(n.OPEN):o.addClass(n.CLOSED),s.addClass(n.PANEL),r==1?s.show():s.hide(),t=null):t=this}),this.delegate("click",i,"."+n.LINK)};e.Node.addMethod("history",s),e.NodeList.importMethod(e.Node.prototype,"history")},"@VERSION@",{requires:["node","transition"]});
