Skip to content

Instantly share code, notes, and snippets.

@connor4312
Last active August 29, 2015 14:03
Show Gist options
  • Save connor4312/af385d566f016a634a54 to your computer and use it in GitHub Desktop.
Save connor4312/af385d566f016a634a54 to your computer and use it in GitHub Desktop.
A Tiny jQuery Plugin
#########################################################################
# Tiny jQuery plugin that lets us do actions on hidden elements, so we
# can grab heights and such!
##########################################################################
$.fn.whileHidden = (action, args...) ->
r = @show()[action](args...)
@hide()
return r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment