23 lines
293 B
JavaScript
Executable File
23 lines
293 B
JavaScript
Executable File
var Backbone = require('backbone');
|
|
|
|
/*
|
|
* List item model
|
|
*
|
|
*/
|
|
|
|
module.exports = Backbone.Model.extend({
|
|
|
|
defaults: {
|
|
highlightedAdd: false
|
|
},
|
|
|
|
getHighlighted: function () {
|
|
return this.get('highlightedAdd') && this;
|
|
},
|
|
|
|
getName: function () {
|
|
return 'Add';
|
|
}
|
|
|
|
});
|