12 lines
328 B
JavaScript
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')();
|
||
|
}
|
||
|
});
|