Skip to content

Instantly share code, notes, and snippets.

@marlun
Created December 6, 2010 20:55
Show Gist options
  • Save marlun/730926 to your computer and use it in GitHub Desktop.
Save marlun/730926 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.push(view.render().el);
});
this.$('#todo-body').append(tasks.join(''));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment