mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 11:30:28 +01:00
17 lines
304 B
JavaScript
17 lines
304 B
JavaScript
$(function(){
|
|
window.Todo = Backbone.Model.extend({
|
|
defaults: function() {
|
|
return {
|
|
done: false,
|
|
order: Todos.nextOrder()
|
|
};
|
|
},
|
|
|
|
// Toggle the `done` state of this todo item.
|
|
toggle: function() {
|
|
this.save({done: !this.get("done")});
|
|
}
|
|
|
|
});
|
|
});
|