missing "this" for reference

pull/3094/head
yann300 6 years ago
parent 7bb1ad301f
commit 13e7544ee0
  1. 8
      src/app/editor/SourceHighlighters.js
  2. 2
      src/app/tabs/compile-tab.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()
}
}

@ -181,7 +181,7 @@ module.exports = class CompileTab {
})
}
getCompilationResult (cb) {
cb(null, self._components.compiler.lastCompilationResult)
cb(null, this._components.compiler.lastCompilationResult)
}
profile () {
return {

Loading…
Cancel
Save