Passing event delegate to function

Why is this not working? I’m trying to pass a custom event delegate to a function that binds it to an event dispatcher.

Thanks.