Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
var _ = require('underscore');
|
||||
var LegendBaseDefModel = require('./legend-custom-definition-model');
|
||||
|
||||
module.exports = LegendBaseDefModel.extend({
|
||||
defaults: function () {
|
||||
return _.extend({}, LegendBaseDefModel.prototype.defaults,
|
||||
{
|
||||
type: 'torque',
|
||||
items: [],
|
||||
html: ''
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
parse: function (r, opts) {
|
||||
var attrs = LegendBaseDefModel.prototype.parse.call(this, r, opts);
|
||||
attrs.type = 'torque';
|
||||
return attrs;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user