Make immediate package loading work

This commit is contained in:
probablycorey
2014-02-07 15:50:48 -08:00
parent e51c94b940
commit 00f30eaf6c
2 changed files with 19 additions and 3 deletions

View File

@@ -98,11 +98,12 @@ class PackageManager
@activePackages[pack.name] = pack
pack
# Deprecated
activatePackageSync: (name, options) ->
return pack if pack = @getActivePackage(name)
if pack = @loadPackage(name)
@activePackages[pack.name] = pack
pack.activate(options)
pack.activateSync(options)
pack
# Private: Deactivate all packages