Class: Callback

Callback

Callbacks defines events for sending data to subscribers. The data to be sent, are specified in the attributeTypeList.
Constructor: Initializes the AttributeTypeList.

Requires

  • module:easejs
  • module:ParameterList
  • module:AttributeType
  • module:AttributeTypeList

Methods

addAttributeType(_attributeType)

Adds an attribute to AttributeTypeList.
Name Type Description
_attributeType AttributeType AttributeType

virtualequals(_callback){boolean}

Compares this instance with the given one.
Name Type Description
_callback Callback Callback that should be compared
Returns the associated attributes (only the types).

getName(){string}

Returns the name.

removeAttributeType(_attributeType)

Removes an attribute from AttributeTypeList.
Name Type Description
_attributeType AttributeType AttributeType

setAttributeTypes(_attributeTypes)

Adds a list of AttributeTypes.
Name Type Description
_attributeTypes AttributeTypeList AttributeTypeList
Sets the name.
Name Type Description
_name string Name

withAttributeTypes(_attributeTypes){Callback}

Builder for AttributeTypes.
Name Type Description
_attributeTypes AttributeTypeList | Array attributeTypes
Builder for name.
Name Type Description
_name String Name