Reassign context to undefined because CoffeeScript needs a var keyword

Fixes #4100
This commit is contained in:
Nathan Sobo
2014-11-07 18:00:38 -07:00
parent 5193fa698f
commit 481e444ffe
4 changed files with 27 additions and 5 deletions

View File

@@ -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