fixed issue #496
This commit is contained in:
parent
160c99b2b8
commit
df3739517d
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Reference in a new issue