Created
May 23, 2012 06:54
-
-
Save jhubert/2773610 to your computer and use it in GitHub Desktop.
Sample Layout of a view with self contained data
This file contains hidden or 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
| SkillRank.Views.DashboardUserLists = Backbone.View.extend | |
| template: JST['dashboard/_user_lists'] | |
| initialize: -> | |
| @collection = new SkillRank.Collections.Lists() | |
| @collection.on('reset', @render, this) | |
| @collection.fetch() | |
| render: -> | |
| @$el.html(@template(lists: @collection)) | |
| this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment