23 lines
345 B
JavaScript
Executable File
23 lines
345 B
JavaScript
Executable File
var Backbone = require('backbone');
|
|
|
|
/*
|
|
* List item model
|
|
*
|
|
*/
|
|
|
|
module.exports = Backbone.Model.extend({
|
|
|
|
defaults: {
|
|
selected: false
|
|
},
|
|
|
|
getName: function () {
|
|
return (this.get('label') == null) ? this.getValue() : this.get('label'); // eslint-disable-line
|
|
},
|
|
|
|
getValue: function () {
|
|
return this.get('val');
|
|
}
|
|
|
|
});
|