public/javascripts/yui/element/element.js
function(map, silent){
            for (var key in map) {
                if ( Lang.hasOwnProperty(map, key) ) {
                    this.set(key, map[key], silent);
                }
            }
        }
function(map, silent){
            for (var key in map) {
                if ( Lang.hasOwnProperty(map, key) ) {
                    this.set(key, map[key], silent);
                }
            }
        }
function ( map , silent ) { for ( var key in map ) { if ( Lang . hasOwnProperty ( map , key ) ) { this . set ( key , map [ key ] , silent ) ; } } }
Sets multiple attribute values.
@method setAttributes
@param {Object} map  A key-value map of attributes
@param {Boolean} silent Whether or not to suppress change events
Sets multiple attribute values .