Skip to content

Instantly share code, notes, and snippets.

@marlun
Created December 6, 2010 20:51
Show Gist options
  • Save marlun/730921 to your computer and use it in GitHub Desktop.
Save marlun/730921 to your computer and use it in GitHub Desktop.
addAll: function () {
var tasks = '', view;
this.tasks.each(function (task) {
view = new TaskView({model: task});
tasks += (view.render().el);
});
this.$('#todo-body').append(tasks);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment