cartodb/lib/assets/javascripts/dashboard/data/visualization-order-model.js

15 lines
334 B
JavaScript
Raw Normal View History

2020-06-15 10:58:47 +08:00
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');
}
});