src/aria/core/Browser.js
function(receiver, name, state) {
            if (state == null) {
                state = true;
            }

            var flagName = this._buildFlagName(name);
            receiver[flagName] = state;

            return state;
        }
function(receiver, name, state) {
            if (state == null) {
                state = true;
            }

            var flagName = this._buildFlagName(name);
            receiver[flagName] = state;

            return state;
        }
function ( receiver , name , state ) { if ( state == null ) { state = true ; } var flagName = this . _buildFlagName ( name ) ; receiver [ flagName ] = state ; return state ; }
Sets the flag corresponding to the given name to the given state.

<p>
Setting a flag corresponds to assigning its state value to a property whose name is built with <em>_buildFlagName</em>.
</p>

<p>
If no explicit state is given, true is assumed.
</p>

@param {Object} receiver The object receiving the resulting property
@param {String} name The name of the flag
@param {Boolean} state The state of the flag

@return {Boolean} The final state of the flag.

@private
Sets the flag corresponding to the given name to the given state .