src/aja.js
function _buildQuery(){

            var url         = data.url;
            var cache       = typeof data.cache !== 'undefined' ? !!data.cache : true;
            var queryString = data.queryString || '';
            var _data       = data.data;

            //add a cache buster
            if(cache === false){
                queryString += '&ajabuster=' + new Date().getTime();
            }

            url = appendQueryString(url, queryString);

            if(_data && !_dataInBody()){
                url =  appendQueryString(url, _data);
            }
            return url;
        }
function _buildQuery(){

            var url         = data.url;
            var cache       = typeof data.cache !== 'undefined' ? !!data.cache : true;
            var queryString = data.queryString || '';
            var _data       = data.data;

            //add a cache buster
            if(cache === false){
                queryString += '&ajabuster=' + new Date().getTime();
            }

            url = appendQueryString(url, queryString);

            if(_data && !_dataInBody()){
                url =  appendQueryString(url, _data);
            }
            return url;
        }
function _buildQuery ( ) { var url = data . url ; var cache = typeof data . cache !== 'undefined' ? ! ! data . cache : true ; var queryString = data . queryString || '' ; var _data = data . data ; //add a cache buster if ( cache === false ) { queryString += '&ajabuster=' + new Date ( ) . getTime ( ) ; } url = appendQueryString ( url , queryString ) ; if ( _data && ! _dataInBody ( ) ) { url = appendQueryString ( url , _data ) ; } return url ; }
Build the URL to run the request against.
@private
@memberof aja
@returns {String} the URL
Build the URL to run the request against .