mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
change name of event to reloaded
This commit is contained in:
@@ -7,7 +7,7 @@ describe "ThemeManager", ->
|
||||
describe "when the core.themes config value changes", ->
|
||||
it "add/removes stylesheets to reflect the new config value", ->
|
||||
themeManager = new ThemeManager()
|
||||
themeManager.on 'reload', reloadHandler = jasmine.createSpy()
|
||||
themeManager.on 'reloaded', reloadHandler = jasmine.createSpy()
|
||||
spyOn(themeManager, 'getUserStylesheetPath').andCallFake -> null
|
||||
themeManager.load()
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ window.atom =
|
||||
|
||||
loadPackages: ->
|
||||
@loadPackage(name) for name in @getAvailablePackageNames() when not @isPackageDisabled(name)
|
||||
@themes.on 'reload', =>
|
||||
@themes.on 'reloaded', =>
|
||||
pack.reloadStylesheets?() for name, pack of @loadedPackages
|
||||
null
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class ThemeManager
|
||||
@loadTheme(themeName) for themeName in themeNames
|
||||
@loadUserStylesheet()
|
||||
|
||||
@trigger('reload')
|
||||
@trigger('reloaded')
|
||||
|
||||
loadTheme: (name) ->
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user