mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
commit
833c310a91
2 changed files with 3 additions and 2 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()
|
||||
|
|
|
@ -186,4 +186,4 @@ UserHandler = class UserHandler extends Handler
|
|||
res.redirect(document?.get('photoURL') or '/images/generic-wizard-icon.png')
|
||||
res.end()
|
||||
|
||||
module.exports = new UserHandler()
|
||||
module.exports = new UserHandler()
|
||||
|
|
Loading…
Reference in a new issue