nilbus/pinewood-derby

View on GitHub
app/assets/javascripts/contestants.js.coffee

Summary

Maintainability
Test Coverage
$ ->
  $('#contestant_name').focus()
  $('#contestants').on 'hover', '.contestant:has(.retire)', (event) ->
    if event.type == 'mouseenter'
      $(this).find('.retire').show()
    else
      $(this).find('.retire').hide()