cartodb-4.42/lib/assets/javascripts/builder/data/mapcaps-collection.js
2024-04-06 05:25:13 +00: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();
}
});