mirror of
https://github.com/wassname/HackFlowy.git
synced 2026-07-05 17:20:05 +08:00
Change in directory structure
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
var app = app || {};
|
||||
|
||||
(function() {
|
||||
|
||||
app.ListView = Backbone.View.extend({
|
||||
|
||||
el: $("#main .children"),
|
||||
initialize: function(initialTasks) {
|
||||
this.collection = new app.List(initialTasks);
|
||||
this.render();
|
||||
},
|
||||
render: function() {
|
||||
this.collection.each(function(task) {
|
||||
this.renderTask(task);
|
||||
}, this);
|
||||
},
|
||||
renderTask: function(task) {
|
||||
var taskView = new app.TaskView({
|
||||
model: task
|
||||
});
|
||||
this.$el.append(taskView.render().el);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user