Sorry if I was late, just started using rivets and ran into the same problem.
Solution : first bind your function
For example, you have a function:
function customOnClickCallback(event, item) { console.log(event); console.log(item); console.log(item.thing);
First, you associate your function with the call (now I will associate it with the Body):
rivets.bind(document.getElementsByTagName("body")[0], { customOnClick: customOnClickCallback });
Then you can use customOnClick as rv-on-click
<input type=button value="Click" rv-on-click="customOnClick">
As for access to your thing variable, it should be available as item.thing .
source share