Show:

Module: pubsub/pubsubjs

pubsub/pubsubjs

PubSubJS pubsub module.

See:

Extends

Methods

publish(topic, data){uijet}

modules/pubsub/pubsubjs.js, line 56

Publish an event.

Name Type Description
topic string

type of event to publish.

data * optional

data to send to the registered handlers.

See:

subscribe(topic, data){uijet}

modules/pubsub/pubsubjs.js, line 70

Subscribes a handler to an event of type topic.

Name Type Description
topic string

type of event to publish.

data * optional

data to send to the registered handlers.

See:

unsubscribe(topic, data){uijet}

modules/pubsub/pubsubjs.js, line 88

Unsubscribe a handler from a topic, or all handlers of a topic.

If handler is not supplied all handlers of type topic will be removed.

Name Type Description
topic string

type of event to publish.

data * optional

data to send to the registered handlers.

See: