Skip to content

Instantly share code, notes, and snippets.

@rf-
Created March 12, 2011 23:41
Show Gist options
  • Save rf-/867703 to your computer and use it in GitHub Desktop.
Save rf-/867703 to your computer and use it in GitHub Desktop.
$.each carousels, ->
carousel = $(this)
carousels.each ->
carousel = $(this)
# or abstract it out
$.fn.each_j = (callback) ->
this.each (i) ->
callback.call this, i, $(this)
carousels.each_j (_, carousel) ->
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment