@@ -25,7 +25,7 @@ class Xmpp.Views.Tabbar.TabbarView extends Backbone.View
_tab.model.get('withWhom') == contact
)
- Backbone.Events.trigger('closeChat', tab.model)
+ Backbone.Events.trigger('closeChat', tab.model) if tab
@tabs = []