Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View batman-curry.coffee
1 2 3 4 5 6 7 8 9 10
# Technically partial application, yada, yada, yada...
Batman.Filters.curry = buntUndefined (f, params...) ->
=>
args = Array::slice.call(arguments)
event = args.pop()
args.push(params...)
args.push(event)
f.apply this, args
 
# <a data-event-click="someFunction | curry someValue, 'data'">Yay, context!</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.