Class: Colleague

.Presentation. Colleague


new Colleague()

Colleague View - The 'child' view.

Allow to define convention-based subscriptions
as an 'subscriptions' hash on a view. Subscriptions
can then be easily setup and cleaned.

Source:

Extends

Methods


<static> delegateEvents()

Extend delegateEvents() to set subscriptions

Source:

<static> getSubscriptions()

Gets all subscriptions

Source:
Returns:

Returns all subscriptions

Type
object

<static> removeMediatorMessageQueue()

Remove the mediator from this colleague

Source:

<static> renderTemplate()

Render the template

Source:

<static> sendMessage(message, data)

Send a message to the mediator's queue

Parameters:
Name Type Description
message string

Message to send

data object

Data to send with message

Source:

<static> setMediatorMessageQueue(mediator)

Set the mediator to this colleague

Parameters:
Name Type Description
mediator Augmented.Presentation.Mediator

The mediator

Source:

<static> setSubscriptions( [subscriptions])

Subscribe to each subscription

Parameters:
Name Type Argument Description
subscriptions Object <optional>

An optional hash of subscription to add

Source:

<static> undelegateEvents()

Extend undelegateEvents() to unset subscriptions

Source:

<static> unsetSubscriptions( [subscriptions])

Unsubscribe to each subscription

Parameters:
Name Type Argument Description
subscriptions Object <optional>

An optional hash of subscription to remove

Source: