Fixed actions showing up under dialogue bubbles on repeated toggling.

This commit is contained in:
Nick Winter 2014-03-03 16:55:36 -08:00
parent 1b257252f9
commit 65d9186ef1

View file

@ -151,7 +151,7 @@ module.exports = class HUDView extends View
createActions: ->
actions = @$el.find('.thang-actions tbody').empty()
showActions = @thang.world and not _.isEmpty(@thang.actions) and 'action' in @thang.hudProperties ? []
@$el.find('.thang-actions').toggle showActions
@$el.find('.thang-actions').toggleClass 'secret', showActions
return unless showActions
@buildActionTimespans()
for actionName, action of @thang.actions