Use packages to load themes

This commit is contained in:
Matt Colyer
2013-08-30 15:07:15 -07:00
parent a3069edec0
commit a4dedeb92d
2 changed files with 12 additions and 10 deletions

View File

@@ -67,6 +67,7 @@ window.atom =
return pack if pack = @getLoadedPackage(name)
pack = Package.load(packagePath, options)
@loadedPackages[pack.name] = pack
@themes.register(pack) if pack.metadata.theme?
pack
else
throw new Error("Could not resolve '#{name}' to a package path")