src/console/simpleyui.js
function(attrMap) {
        if (this._setAttrs) { // use Attribute imple
            this._setAttrs(attrMap);
        } else { // use setters inline
            Y.Object.each(attrMap, function(v, n) {
                this.set(n, v); 
            }, this);
        }

        return this;
    }
function(attrMap) {
        if (this._setAttrs) { // use Attribute imple
            this._setAttrs(attrMap);
        } else { // use setters inline
            Y.Object.each(attrMap, function(v, n) {
                this.set(n, v); 
            }, this);
        }

        return this;
    }
function ( attrMap ) { if ( this . _setAttrs ) { // use Attribute imple this . _setAttrs ( attrMap ) ; } else { // use setters inline Y . Object . each ( attrMap , function ( v , n ) { this . set ( n , v ) ; } , this ) ; } return this ; }
Sets multiple attributes.
@method setAttrs
@param {Object} attrMap an object of name/value pairs to set
@chainable
Sets multiple attributes .