#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Do.AlterArgs Class

Defined in: `event-custom/js/event-do.js:307`
Module: event-custom-base
Parent Module: event-custom

Return an AlterArgs object when you want to change the arguments that were passed into the function. Useful for Do.before subscribers. An example would be a service that scrubs out illegal characters prior to executing the core business logic.

## Constructor

### `Do.AlterArgs`

(

- `msg`
- `newArgs`

)

Defined in `event-custom/js/event-do.js:307`

#### Parameters:

- `msg` String

  (optional) Explanation of the altered return value

- `newArgs` Array

  Call parameters to be used for the original method instead of the arguments originally passed in.

- Index

## Item Index