JavaScript
0
Вклад в тег
var TaskView = Backbone.View.extend({
el: '#tasks',
model: Todo,
events: {
'click > li .delete-task' : 'removeTask',
'click > li .complete-task' : 'completeTask'
},
removeTask : function (e) {
console.log($(e.target));
},
completeTask : function () {
}
});