bug 1077595 - Use DataStoreChangeEvents to update Download API Manager c...

...ache up to date. Move tracking of active downloads into StatusBar instead of DownloadNotifications. r=crdlc,mhenretty
I would normally agree but there is only need for one listener as the only
user of the download api manager is the downloads list.
On Nov 4, 2014 11:50 PM, "Arthur Chen" <notifications@github.com> wrote:

> In apps/settings/js/downloads/download_api_manager.js:
>
> > @@ -172,6 +246,10 @@
> >
> >      updateDownload: function(download) {
> >        _setDownload(download);
> > +    },
> > +
> > +    setListener: function(listener) {
> > +      downloadsListener = listener;
>
> I would suggest to allow multiple listeners and the ability of removing
> listeners.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mozilla-b2g/gaia/pull/25589/files#r19858911>.
>