Fix linting errors.

This commit is contained in:
Zhongyi Tong
2017-06-18 02:28:50 +08:00
parent f3cf2229c6
commit 9cff5c5a4d
8 changed files with 27 additions and 89 deletions

View File

@@ -3,10 +3,6 @@
const Tab = require(__dirname + '/../components/tab.js');
class FunctionalTab extends Tab {
constructor(props) {
super(props);
}
template() {
return `<div class="tab">
<div class="server-tab-badge close-button">
@@ -17,7 +13,7 @@ class FunctionalTab extends Tab {
</div>
</div>`;
}
init() {
this.$el = this.generateNodeFromTemplate(this.template());
this.props.$root.appendChild(this.$el);
@@ -37,7 +33,7 @@ class FunctionalTab extends Tab {
this.$closeButton.classList.remove('active');
});
this.$closeButton.addEventListener('click', (e) => {
this.$closeButton.addEventListener('click', e => {
this.props.onDestroy();
e.stopPropagation();
});