cartodb-4.42/lib/assets/javascripts/dashboard/data/visualization-order-model.js
2024-04-06 05:25:13 +00:00

15 lines
334 B
JavaScript

const Backbone = require('backbone');
module.exports = Backbone.Model.extend({
url: function (method) {
return this.visualization.url(method) + '/next_id';
},
initialize: function () {
this.visualization = this.get('visualization');
this.set('id', this.visualization.id);
this.unset('visualization');
}
});