Files
HackFlowy/javascripts/views/task.js
T
2013-03-24 23:22:54 +05:30

18 lines
294 B
JavaScript

var app = app || {};
(function() {
app.TaskView = Backbone.View.extend({
tagName: 'li',
template: $('#taskTemplate').html(),
render: function() {
var tmpl = _.template(this.template);
this.$el.html(tmpl(this.model.toJSON()));
return this;
}
});
}());