#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Do.AlterReturn Class

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

Return an AlterReturn object when you want to change the result returned from the core method to the caller. Useful for Do.after subscribers.

## Constructor

### `Do.AlterReturn`

(

- `msg`
- `newRetVal`

)

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

#### Parameters:

- `msg` String

  (optional) Explanation of the altered return value

- `newRetVal` Any

  Return value passed to code that invoked the wrapped function.

- Index

## Item Index