From b2f38677dfe1a8224a7109d82a168edd016bc361 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 26 Jun 2018 18:06:44 +0200 Subject: [PATCH] fix filemanager ref --- src/app/tabs/test-tab.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/tabs/test-tab.js b/src/app/tabs/test-tab.js index 1c35be9aeb..1c4d2f95e0 100644 --- a/src/app/tabs/test-tab.js +++ b/src/app/tabs/test-tab.js @@ -27,6 +27,7 @@ module.exports = class TestTab { return { render () { return self._view.el } } } render () { + var self = this var container = yo`
` function append (container, txt) { @@ -85,7 +86,7 @@ module.exports = class TestTab { container.innerHTML = '' var path = this._deps.fileManager.currentPath() var tests = [] - this._deps.fileManager.filesFromPath(path, (error, files) => { + self._deps.fileManager.filesFromPath(path, (error, files) => { if (!error) { for (var file in files) { if (/.(_test.sol)$/.exec(file)) tests.push(path + file)