Initial commit
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
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');
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user