src/aria/modules/RequestMgr.js
function (name, value) {
            if (value == null) { // null or undefined
                return this.removeParam(name);
            }
            if (this._params == null) {
                this._params = [];
            }
            for (var i = 0, length = this._params.length; i < length; i++) {
                var elt = this._params[i];
                if (elt.name === name) {
                    elt.value = encodeURIComponent(value);
                    return;
                }
            }
            this._params.push({
                name : name,
                value : encodeURIComponent(value)
            });
        }
function (name, value) {
            if (value == null) { // null or undefined
                return this.removeParam(name);
            }
            if (this._params == null) {
                this._params = [];
            }
            for (var i = 0, length = this._params.length; i < length; i++) {
                var elt = this._params[i];
                if (elt.name === name) {
                    elt.value = encodeURIComponent(value);
                    return;
                }
            }
            this._params.push({
                name : name,
                value : encodeURIComponent(value)
            });
        }
function ( name , value ) { if ( value == null ) { // null or undefined return this . removeParam ( name ) ; } if ( this . _params == null ) { this . _params = [ ] ; } for ( var i = 0 , length = this . _params . length ; i < length ; i ++ ) { var elt = this . _params [ i ] ; if ( elt . name === name ) { elt . value = encodeURIComponent ( value ) ; return ; } } this . _params . push ( { name : name , value : encodeURIComponent ( value ) } ) ; }
Add a global request parameter that will be sent with each request, or update it if it already exists
@param {String} name the parameter name
@param {String} value the parameter value
Add a global request parameter that will be sent with each request or update it if it already exists