beforeExecute

Gets an event which is raised before the command executes, the event is raised with an object containing two properties: a cancel property, which if set to false by the listener will prevent the command from being executed, and an args property, which is the array of arguments being passed to the command.

See also