diaspora/public/javascripts/app/views/comment_view.js
danielgrippi ae6fa5bebb don't use Diaspora widget system or stream.js when backbone is active;
migrating like actions over to backbone; some cleanup; bump jquery to
1.7.1
2012-01-07 14:23:22 -08:00

19 lines
399 B
JavaScript

App.Views.Comment = App.Views.StreamObject.extend({
template_name: "#comment-template",
events : {
"click .comment_delete": "destroyModel"
},
render: function() {
this.el = $(this.template($.extend(
this.model.toJSON(),
App.user()
)));
this.delegateEvents(); //we need this because we are explicitly setting this.el in this.render()
return this;
}
});