From c5aafbfacb8e3ef6f6d41de45de523d68352efd3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 16 Jan 2019 18:21:05 +0100 Subject: [PATCH] missing "this" for reference --- src/app/editor/SourceHighlighters.js | 8 ++++---- src/app/tabs/compile-tab.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/editor/SourceHighlighters.js b/src/app/editor/SourceHighlighters.js index fe05946ded..3764cff916 100644 --- a/src/app/editor/SourceHighlighters.js +++ b/src/app/editor/SourceHighlighters.js @@ -23,14 +23,14 @@ module.exports = class SourceHighlighters { } catch (e) { return cb(e.message) } - if (!highlighters[mod]) highlighters[mod] = new SourceHighlighter() - highlighters[mod].currentSourceLocation(null) - highlighters[mod].currentSourceLocationFromfileName(position, filePath, hexColor) + if (!this.highlighters[mod]) this.highlighters[mod] = new SourceHighlighter() + this.highlighters[mod].currentSourceLocation(null) + this.highlighters[mod].currentSourceLocationFromfileName(position, filePath, hexColor) cb() } discardHighlight (mod, cb) { - if (highlighters[mod]) highlighters[mod].currentSourceLocation(null) + if (this.highlighters[mod]) this.highlighters[mod].currentSourceLocation(null) cb() } } diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 061d780768..c265f7d03f 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -181,7 +181,7 @@ module.exports = class CompileTab { }) } getCompilationResult (cb) { - cb(null, self._components.compiler.lastCompilationResult) + cb(null, this._components.compiler.lastCompilationResult) } profile () { return {