ItemViewContainer didn't exist sometimes for root folders

Fixed: Error displaying existing root folders in some cases
Closes #1170
This commit is contained in:
Mark McDowall 2016-03-21 15:02:09 -07:00
parent 59e71a4cd9
commit af220c7f7b
1 changed files with 2 additions and 2 deletions

View File

@ -27,10 +27,10 @@ var Layout = Marionette.Layout.extend({
this.rootfolderListView = new RootFolderCollectionView({ collection : RootFolderCollection });
this.listenTo(this.rootfolderListView, 'itemview:folderSelected', this._onFolderSelected);
this.listenTo(RootFolderCollection, 'sync', this._showCurrentDirs);
},
onRender : function() {
onShow : function() {
this.listenTo(RootFolderCollection, 'sync', this._showCurrentDirs);
this.currentDirs.show(new LoadingView());
if (RootFolderCollection.synced) {