Skip to content

Instantly share code, notes, and snippets.

@akb
Created May 22, 2012 20:56
Show Gist options
  • Save akb/2771582 to your computer and use it in GitHub Desktop.
Save akb/2771582 to your computer and use it in GitHub Desktop.
coffescript hover
over = ->
console.log "hovering over minneapolis"
myshow "contact-us-minneapolis"
out = ->
console.log "out hovering over minneapolis"
myhide "contact-us-minneapolis"
$("#contact-minneapolis").hover over, out
-or-
v--------- this space is important
$("#contact-minneapolis").hover (->
console.log "hovering over minneapolis"
console.log "contact-us-minneapolis"
), (->
console.log "out hovering over minneapolis"
console.log "contact-us-minneapolis"
)
---- mouseover ----
$("#contact-minneapolis").mouseover ->
console.log "hovering over minneapolis"
myshow "contact-us-minneapolis"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment