diff --git a/src/app/panels/tab-proxy.js b/src/app/panels/tab-proxy.js
index 6ae697501b..e02fc986ba 100644
--- a/src/app/panels/tab-proxy.js
+++ b/src/app/panels/tab-proxy.js
@@ -65,15 +65,14 @@ export class TabProxy {
}
renderTabsbar () {
- var self = this
- self._view.filetabs = yo`
`
+ this._view.filetabs = yo``
- self._view.tabs = yo`
+ this._view.tabs = yo`
- ${self._view.filetabs}
+ ${this._view.filetabs}
@@ -87,14 +86,15 @@ export class TabProxy {
- ${self._view.tabs}
+ ${this._view.tabs}
`
// tabs
- var $filesEl = $(self._view.filetabs)
+ var $filesEl = $(this._view.filetabs)
// Switch tab
+ var self = this
$filesEl.on('click', '.file:not(.active)', function (ev) {
ev.preventDefault()
self.fileManager.switchFile($(this).find('.name').text())
@@ -109,8 +109,6 @@ export class TabProxy {
return false
})
- return tabsbar
-
function toggleScrollers (event = {}) {
if (event.type) self.data._focus = event.type
var isMouseEnter = self.data._focus === 'mouseenter'
@@ -172,5 +170,7 @@ export class TabProxy {
}
}
}
+
+ return tabsbar
}
}