Merge pull request #579 from ItsLastDay/popover

Fix for issue #496
This commit is contained in:
Nick Winter 2014-03-17 04:30:57 -07:00
commit 833c310a91
2 changed files with 3 additions and 2 deletions

View file

@ -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()

View file

@ -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()