Skip to content

Commit e8a8317

Browse files
committed
const instead of let
1 parent dba50fd commit e8a8317

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib_src/misc/colors.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
'use babel'
22

33
export function getColors(selectors) {
4-
let grammar = atom.grammars.grammarForScopeName("source.julia")
4+
const grammar = atom.grammars.grammarForScopeName("source.julia")
55

6-
let styled = {}
7-
let color = {}
8-
let div = document.createElement('div')
6+
const styled = {}
7+
const color = {}
8+
const div = document.createElement('div')
99
div.classList.add('editor', 'editor-colors', 'julia-syntax-color-selector')
1010

11-
for (let style in selectors) {
12-
let child = document.createElement('span')
11+
for (const style in selectors) {
12+
const child = document.createElement('span')
1313
child.innerText = 'foo'
1414
child.classList.add(...selectors[style])
1515
div.appendChild(child)
@@ -18,7 +18,7 @@ export function getColors(selectors) {
1818

1919
document.body.appendChild(div)
2020
// wait till rendered?
21-
for (let style in selectors) {
21+
for (const style in selectors) {
2222
try {
2323
color[style] = rgb2hex(window.getComputedStyle(styled[style])['color'])
2424
} catch (e) {

0 commit comments

Comments
 (0)