springroll.pbskids.EventUtils Class

Utility class for handling events

Methods

_validate

(
  • type
  • value
  • args
)
private

Defined in _validate:92

Do the actual type validation on a specific value

Parameters:

  • type String | Array

    The type of value, if an array a set of valid items

  • value

    The value to test against

  • args Array

    The list of properties to validate if a typed object

argsMap

(
  • allArgs
  • inputs
)
Object
static

Defined in argsMap:20

Convert an array of input arguments into a data map

Parameters:

  • allArgs Array

    All the event arguments

  • inputs Array

    The data to validate

Returns:

Object:

The validated event data object

validate

(
  • args
  • inputs
)
Object
static

Defined in validate:58

Validate arguments

Parameters:

  • args Array

    The event arguments

  • inputs Object

    The data to validate

Returns:

Object:

The validated event data object