public/javascripts/yui/element/element.js
function(map, init) {
        map = map || {};

        if (init) {
            this._written = false; // reset writeOnce
        }

        this._initialConfig = this._initialConfig || {};
        
        for (var key in map) {
            if ( map.hasOwnProperty(key) ) {
                this[key] = map[key];
                if (init) {
                    this._initialConfig[key] = map[key];
                }
            }
        }
    }
function(map, init) {
        map = map || {};

        if (init) {
            this._written = false; // reset writeOnce
        }

        this._initialConfig = this._initialConfig || {};
        
        for (var key in map) {
            if ( map.hasOwnProperty(key) ) {
                this[key] = map[key];
                if (init) {
                    this._initialConfig[key] = map[key];
                }
            }
        }
    }
function ( map , init ) { map = map || { } ; if ( init ) { this . _written = false ; // reset writeOnce } this . _initialConfig = this . _initialConfig || { } ; for ( var key in map ) { if ( map . hasOwnProperty ( key ) ) { this [ key ] = map [ key ] ; if ( init ) { this . _initialConfig [ key ] = map [ key ] ; } } } }
Allows for configuring the Attribute's properties.
@method configure
@param {Object} map A key-value map of Attribute properties.
@param {Boolean} init Whether or not this should become the initial config.
Allows for configuring the Attribute s properties .