B2G/gaia/apps/homescreen/everything.me/js/api/DoATAPI.js
// takes a method's response, and saves data according to paramsToPassBetweenRequests
takes a method's response, and saves data according to paramsToPassBetweenRequests
takes a method ' s response and saves data according to paramsToPassBetweenRequests
function saveParamFromRequest(method, response) {
        var events = paramsToPassBetweenRequests[method],
            paramValue = response && response[PARAM_TO_PASS_FROM_REQUEST_TO_STATS];
        if (!paramValue || !events) {
            return;
        }
        for (var i=0,ev; ev=events[i++];) {
            savedParamsToPass[ev] = paramValue;
        }
    }
function saveParamFromRequest ( method , response ) { var events = paramsToPassBetweenRequests [ method ] , paramValue = response && response [ PARAM_TO_PASS_FROM_REQUEST_TO_STATS ] ; if ( ! paramValue || ! events ) { return ; } for ( var i = 0 , ev ; ev = events [ i ++ ] ; ) { savedParamsToPass [ ev ] = paramValue ; } }
takes a method's response, and saves data according to paramsToPassBetweenRequests
takes a method ' s response and saves data according to paramsToPassBetweenRequests
// this will create a map of userEvents => requestId // to be added to the actual event request later