Use subscribe instead of on

This commit is contained in:
Kevin Sawicki 2013-09-26 10:14:49 -07:00
parent bdddb4eb52
commit c3e462db00

View File

@ -32,7 +32,7 @@ class Atom
ContextMenuManager = require './context-menu-manager'
@packages = new PackageManager()
@packages.on 'loaded', => @watchThemes()
@subscribe @packages, 'loaded', => @watchThemes()
@themes = new ThemeManager()
@contextMenu = new ContextMenuManager(@getLoadSettings().devMode)
@config = new Config()