fixed issue

This commit is contained in:
Mikhail Koltsov 2014-03-17 12:28:49 +04:00
parent 160c99b2b8
commit df3739517d

View file

@ -102,7 +102,7 @@ module.exports = class ThangListEntryView extends View
onThangListEntryPopoverShown: (e) -> onThangListEntryPopoverShown: (e) ->
# I couldn't figure out how to get the mouseenter / mouseleave to always work, so this is a fallback # I couldn't figure out how to get the mouseenter / mouseleave to always work, so this is a fallback
# to hide our popover is another Thang's popover gets shown. # to hide our popover if another Thang's popover gets shown.
return if e.entry is @ return if e.entry is @
@hideSpells() @hideSpells()
@ -162,6 +162,7 @@ module.exports = class ThangListEntryView extends View
destroy: -> destroy: ->
@avatar?.destroy() @avatar?.destroy()
@popover?.remove()
@popover?.off 'mouseenter mouseleave' @popover?.off 'mouseenter mouseleave'
@popover?.find('code').off 'click' @popover?.find('code').off 'click'
super() super()