Skip to content
This repository was archived by the owner on Dec 1, 2017. It is now read-only.

Conversation

@almet
Copy link
Contributor

@almet almet commented Feb 11, 2014

This is a work in progress. Do not merge (yet).

This is done in order to simplify how messages are sent and routed trough the
application.

eventrouter.js contains all the routing information, and the consumers should
send the messages to the router instead of the ports. Something like this:

this.router = new EventRouter("SidebarApp", this.appPort, this);
this.router.send("message");

The router object takes a reference to the routed object in order to call its
methods directly (rather than having to listen to events from within the
object).

This is done in order to simplify how messages are sent and routed trough the
application.

`eventrouter.js` contains all the routing information, and the consumers should
send the messages to the router instead of the ports. Something like this::

    this.router = new EventRouter("SidebarApp", this.appPort, this);
    this.router.send("message");

The router object takes a reference to the routed object in order to call its
methods directly (rather than having to listen to events from within the
object).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant