scottjason/get-a-room — pull request #6 by scottjason (2014-10-16 21:43:12+00:00)
Title: adds event dispatcher, new structure, react.jsx rendering, user-interface, calendar, time-picker, invitations 

--Control Flow and the Event Dispatcher--

We initialize the event listeners and the dispatcher so it's ready to fire on user and hardware events before they happen. We inject the session and the controller. The controller gives us the callback to invoke sessionStart which will connect the user. It also gives us all the methods that the dispatcher invokes, which will be registered as callbacks when fired upon. The will be fired upon when an event listener in the controller invokes the corresponding behavior in the model.

This way, the listeners and dispatcher are ready and able before any events take place.

listen --> trigger --> dispatch --> respond
Dispatcher = High-Level Behavior, Controller = Mid-Level Behavior, Models & Views = Low-Level Behavior