mirror of
https://github.com/atom/atom.git
synced 2026-02-14 16:45:14 -05:00
If an atom package has no state, activate it with an empty object
This commit is contained in:
@@ -18,7 +18,7 @@ _.extend atom,
|
||||
|
||||
activateAtomPackage: (pack) ->
|
||||
@activatedAtomPackages.push(pack)
|
||||
pack.packageMain.activate(@atomPackageStates[pack.name])
|
||||
pack.packageMain.activate(@atomPackageStates[pack.name] ? {})
|
||||
|
||||
deactivateAtomPackages: ->
|
||||
pack.packageMain.deactivate?() for pack in @activatedAtomPackages
|
||||
|
||||
Reference in New Issue
Block a user