Initial commit
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
var Backbone = require('backbone');
|
||||
|
||||
module.exports = Backbone.Model.extend({
|
||||
|
||||
defaults: {
|
||||
default: false,
|
||||
minZoom: 0,
|
||||
maxZoom: 21,
|
||||
name: '',
|
||||
category: 'Custom',
|
||||
type: 'Tiled',
|
||||
selected: false,
|
||||
val: '',
|
||||
label: '',
|
||||
template: function () {
|
||||
return '';
|
||||
}
|
||||
},
|
||||
|
||||
getName: function () {
|
||||
return this.get('label') || this.getValue();
|
||||
},
|
||||
|
||||
getValue: function () {
|
||||
return this.get('val');
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user