troopjs/troopjs-browser — pull request #36 by garryyao (2014-01-10 08:05:40+00:00)
Title: Notify running task through hub

Currently we rely on DOM event "task" that bubbles up the widget tree to notify a running task inside of the widget, the limitation of this approach is when widget lives on a high level DOM element, like document/window, it's hard to get all UI widgets notified.

The typical case for this scenario is a spinner widget hooked in somewhere in the page, is unable to get notified when the mvc controller widget(which is hooked onto window) is querying for data.

In additional to the DOM event, a hub event would be the idea candidate for this job.