Component sendAction code sample

I think that the API evolved and the code sample wasn't adapted, right?