"that the command specified for the event is a function." . . . .