Created
April 27, 2011 15:40
-
-
Save trabianmatt/944505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model.comments.fetch | |
success: => | |
commentListView = new CommentListView | |
collection: @model.comments | |
fetchOnInit: false | |
title: 'All comments' | |
$(@el).append commentListView.render().el | |
recentCommentView = new CommentListView | |
collection: @model.comments | |
fetchOnInit: false | |
title: 'Most recent comment' | |
showLast: 1 | |
className: 'recent-comment comments' | |
$(@formView.el).after recentCommentView.render().el |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment