mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-06-27 16:00:04 +08:00
18 lines
294 B
JavaScript
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;
|
|
}
|
|
|
|
});
|
|
|
|
}()); |