Repeaters and actions

@stcroppe answered it in details and very clear. I don’t know why Wix is not allowing me to upvote his answer.

For people who need short answer,
In event handler function, you just add $w as second parameter, everything else will sort out by itself.
// button is inside a repeater
Eg: export function button_click ( event , $w ) {
//function code here
}