change name of event to reloaded

This commit is contained in:
Ben Ogle
2013-08-14 10:44:55 -07:00
parent 0eff8deabc
commit 15085384b9
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@@ -30,7 +30,7 @@ class ThemeManager
@loadTheme(themeName) for themeName in themeNames
@loadUserStylesheet()
@trigger('reload')
@trigger('reloaded')
loadTheme: (name) ->
try