File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
'use babel'
2
2
3
3
export function getColors ( selectors ) {
4
- let grammar = atom . grammars . grammarForScopeName ( "source.julia" )
4
+ const grammar = atom . grammars . grammarForScopeName ( "source.julia" )
5
5
6
- let styled = { }
7
- let color = { }
8
- let div = document . createElement ( 'div' )
6
+ const styled = { }
7
+ const color = { }
8
+ const div = document . createElement ( 'div' )
9
9
div . classList . add ( 'editor' , 'editor-colors' , 'julia-syntax-color-selector' )
10
10
11
- for ( let style in selectors ) {
12
- let child = document . createElement ( 'span' )
11
+ for ( const style in selectors ) {
12
+ const child = document . createElement ( 'span' )
13
13
child . innerText = 'foo'
14
14
child . classList . add ( ...selectors [ style ] )
15
15
div . appendChild ( child )
@@ -18,7 +18,7 @@ export function getColors(selectors) {
18
18
19
19
document . body . appendChild ( div )
20
20
// wait till rendered?
21
- for ( let style in selectors ) {
21
+ for ( const style in selectors ) {
22
22
try {
23
23
color [ style ] = rgb2hex ( window . getComputedStyle ( styled [ style ] ) [ 'color' ] )
24
24
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments