bookmarks: only emit once the view has been created.

This commit is contained in:
JC Brand 2017-05-15 17:40:34 +02:00
parent e49fbc457d
commit 26cd567cca
2 changed files with 1 additions and 4 deletions

View File

@ -487,8 +487,8 @@
_converse.bookmarksview = new _converse.BookmarksView(
{'model': _converse.bookmarks}
);
_converse.emit('bookmarksInitialized');
});
_converse.emit('bookmarksInitialized');
};
$.when(_converse.api.waitUntil('chatBoxesFetched'),
_converse.api.waitUntil('roomsPanelRendered')).then(initBookmarks);

View File

@ -36,9 +36,6 @@
defaults: {
"toggle-state": _converse.OPENED
},
initialize: function () {
}
});
_converse.RoomsListView = Backbone.View.extend({