Skip to content

Instantly share code, notes, and snippets.

@trabianmatt
Created April 27, 2011 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trabianmatt/944505 to your computer and use it in GitHub Desktop.
Save trabianmatt/944505 to your computer and use it in GitHub Desktop.
@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