okay got it.


On Fri, Nov 8, 2013 at 2:37 PM, dwi2 <notifications@github.com> wrote:

> In build/additional-extensions.js:
>
> > +      if (url) {
> > +        deferred.resolve(url);
> > +      } else {
> > +        getUrlFromAMO(extension.amo).then(function(amoUrl) {
> > +          deferred.resolve(amoUrl);
> > +        });
> > +      }
> > +    } catch (e) {
> > +      deferred.reject(e);
> > +    }
> > +    return deferred.promise;
> > +  }
> > +
> > +  function getUrlFromAMO(amo_id) {
> > +    var deferred = Promise.defer();
> > +    function extractDownloadUrlFromAMO(sourceUrl, filePath) {
>
> This is because DownloadManager needs its callback to accept two variables
> (in order)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mozilla-b2g/gaia/pull/13132/files#r7520142>
> .
>