Perhaps attach the listener to the `actionMenu` and use the `event.target` (IIRC) to delegate the function call?