cartodb/lib/assets/javascripts/builder/components/tab-pane/tab-pane-item-view-routed.js
2020-06-15 10:58:47 +08:00

12 lines
328 B
JavaScript

var _ = require('underscore');
var TabPaneItemView = require('./tab-pane-item-view.js');
module.exports = TabPaneItemView.extend({
_onButtonClicked: function (event) {
event.preventDefault();
if (this.model.get('disabled')) return;
_.isFunction(this.model.get('onClick')) && this.model.get('onClick')();
}
});