Change in directory structure

This commit is contained in:
Abhishek Das
2013-03-25 01:23:09 +05:30
parent e53369a5a2
commit 93400554fd
20 changed files with 1884 additions and 0 deletions
-26
View File
@@ -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);
}
});
}());