Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Jan 25, 2015
1 parent 3d031f2 commit e764ce7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/assets/javascripts/visual/touchhover.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ $ ->
e.preventDefault()
$el.data('touched', true)
'mouseenter touchstart': (e) ->
$container = $(event.target).closest('.TouchHover')
$hidden = $container.children('.TouchHover--hidden')
$hidden_el = $(event.target)
.closest('.TouchHover')
.children('.TouchHover--hidden')

document.Fairmondo.push_left_if_necessary $hidden
document.Fairmondo.push_left_if_necessary $hidden_el
},
'.TouchHover'
)

0 comments on commit e764ce7

Please sign in to comment.