diff --git a/demo.coffee.md b/demo.coffee.md index 965c1dd..6947a7b 100644 --- a/demo.coffee.md +++ b/demo.coffee.md @@ -26,5 +26,5 @@ A demo application displaying the filetree. document.body.appendChild template(filetree) textarea = document.createElement "textarea" - + document.body.appendChild textarea diff --git a/templates/filetree.haml.md b/templates/filetree.haml.md index 72b7648..f92033e 100644 --- a/templates/filetree.haml.md +++ b/templates/filetree.haml.md @@ -3,7 +3,7 @@ Render a list of files as a filetree. %ul.filetree - selectedFile = @selectedFile - files = @files - - each files, (file) -> + - files.each (file) -> - select = (e) -> selectedFile(file) if e.target.nodeName is 'LI' %li(click=select)= file.displayName - remove = -> files.remove(file) if confirm("Delete #{file.path()}?")