Skip to content

@pvande /batman-curry.coffee
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# 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.