PolyDeploy/Clients/Core/src/js/services/EventLogDataService.js
// Builds a query string from the passed object.
Builds a query string from the passed object.
Builds a query string from the passed object .
function buildQueryString(queryParams) {
            var queryString = '';
            for (var paramName in queryParams) {
                if (queryString.length === 0) {
                    queryString = queryString + '?';
                } else {
                    queryString = queryString + '&';
                }
                queryString = queryString + paramName + '=' + queryParams[paramName];
            }
            return queryString;
        }
function buildQueryString ( queryParams ) { var queryString = '' ; for ( var paramName in queryParams ) { if ( queryString . length === 0 ) { queryString = queryString + '?' ; } else { queryString = queryString + '&' ; } queryString = queryString + paramName + '=' + queryParams [ paramName ] ; } return queryString ; }
Builds a query string from the passed object.
Builds a query string from the passed object .
// Loop properties. // Is it the first parameter? // Yes, use '?'. // No, use '&'. // Add parameter.