mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Add tests to repository
This commit is contained in:
16
tests/javascript/backboje.js
Normal file
16
tests/javascript/backboje.js
Normal file
@@ -0,0 +1,16 @@
|
||||
$(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")});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user