Always trigger loaded event

This commit is contained in:
Kevin Sawicki 2013-05-22 09:51:21 -07:00
parent 9552ebf4c2
commit 484c16da42

View File

@ -12,11 +12,11 @@ class AvailablePackagesConfigPanel extends ConfigPanel
@span 'Loading available packages\u2026'
initialize: ->
packageManager.getAvailable (error, packages) =>
packageManager.getAvailable (error, packages=[]) =>
@loadingArea.hide()
if error?
console.error(error.stack ? error)
else
for pack in packages
@append(new PackageConfigView(pack))
@trigger('available-packages-loaded', [packages])
@trigger('available-packages-loaded', [packages])