mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
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) ->
|
||||
# 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 @
|
||||
@hideSpells()
|
||||
|
||||
|
@ -162,6 +162,7 @@ module.exports = class ThangListEntryView extends View
|
|||
|
||||
destroy: ->
|
||||
@avatar?.destroy()
|
||||
@popover?.remove()
|
||||
@popover?.off 'mouseenter mouseleave'
|
||||
@popover?.find('code').off 'click'
|
||||
super()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue