diaspora/public/javascripts/views/comment.js
2012-01-07 14:23:21 -08:00

15 lines
323 B
JavaScript

App.Views.Comment = Backbone.View.extend({
initialize: function(options) {
this.model = options.model;
this.template = _.template($("#comment-template").html());
},
render: function() {
this.el = $(this.template($.extend(
this.model.toJSON(),
App.user()
)));
return this.el;
}
});