cartodb/lib/assets/javascripts/builder/data/mapcaps-collection.js
2020-06-15 10:58:47 +08:00

10 lines
270 B
JavaScript
Executable File

var Backbone = require('backbone');
module.exports = Backbone.Collection.extend({
initialize: function (models, opts) {
if (!opts.visDefinitionModel) throw new Error('visDefinitionModel is required');
this.url = opts.visDefinitionModel.mapcapsURL();
}
});