Displays deeply nested comments inline.

This just puts them in three traversal order rather than chronological order.
Not sure which makes the most sense, but I'll implement both ways.
This commit is contained in:
Ibrahim Awwal
2012-09-11 05:08:55 -07:00
parent 7e96f668c0
commit fc459f7e44

View File

@@ -34,6 +34,9 @@ if Backbone?
view = new ResponseCommentView(model: comment)
view.render()
@$el.find(".comments li:last").before(view.el)
children = new Comments(comment.get('children'))
children.each @renderComment
toggleVote: (event) ->
event.preventDefault()