Added a bit of error handling for weird equipment error we were seeing.

This commit is contained in:
Nick Winter 2014-09-16 11:13:03 -07:00
parent 54f56162e9
commit a700b7844f

View file

@ -27,7 +27,10 @@ module.exports = class LevelChatView extends CocoView
updateMultiplayerVisibility: ->
return unless @$el?
@$el.toggle Boolean @session.get('multiplayer')
try
@$el.toggle Boolean @session.get('multiplayer')
catch e
console.error "Couldn't toggle the style on the LevelChatView to #{Boolean @session.get('multiplayer')} because of an error:", e
afterRender: ->
@chatTables = $('table', @$el)