Browse code

FIX: pad pri neplatnom pristupe

Cinan Rakosnik authored on 16/05/2013 at 20:48:09
Showing 1 changed files
... ...
@@ -25,7 +25,7 @@ class Xmpp.Views.Tabbar.TabbarView extends Backbone.View
25 25
         _tab.model.get('withWhom') == contact
26 26
       )
27 27
 
28
-      Backbone.Events.trigger('closeChat', tab.model)
28
+      Backbone.Events.trigger('closeChat', tab.model) if tab
29 29
     )
30 30
 
31 31
     @tabs = []