mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Always trigger loaded event
This commit is contained in:
parent
9552ebf4c2
commit
484c16da42
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user