mirror of
https://github.com/atom/atom.git
synced 2026-02-19 02:44:29 -05:00
Reassign context to undefined because CoffeeScript needs a var keyword
Fixes #4100
This commit is contained in:
@@ -176,7 +176,6 @@ class Package
|
||||
activateStylesheets: ->
|
||||
return if @stylesheetsActivated
|
||||
|
||||
|
||||
group = @getStylesheetType()
|
||||
@stylesheetDisposables = new CompositeDisposable
|
||||
for [sourcePath, source] in @stylesheets
|
||||
@@ -184,6 +183,8 @@ class Package
|
||||
context = match[1]
|
||||
else if @metadata.theme is 'syntax'
|
||||
context = 'atom-text-editor'
|
||||
else
|
||||
context = undefined
|
||||
|
||||
@stylesheetDisposables.add(atom.styles.addStyleSheet(source, {sourcePath, group, context}))
|
||||
@stylesheetsActivated = true
|
||||
|
||||
Reference in New Issue
Block a user