Skip to content

Commit

Permalink
fix: set the initial value of the config values
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 12, 2021
1 parent b8d899a commit d2e2963
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/mixins/canvas-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ let thisSpec
* methods are available on any `MinimapElement` instance.
*/
export default class CanvasDrawer {
constructor() {
constructor () {
// set in setModel of minimapElement
this.minimap = undefined
// set by minimapElement
this.displayCodeHighlights = undefined
this.ignoreWhitespacesInTokens = undefined
this.displayCodeHighlights = atom.config.get('minimap.displayCodeHighlights')
this.ignoreWhitespacesInTokens = atom.config.get('minimap.ignoreWhitespacesInTokens')
}

/**
* Initializes the canvas elements needed to perform the `Minimap` rendering.
*/
Expand Down

0 comments on commit d2e2963

Please sign in to comment.