src/aria/widgets/AriaSkinNormalization.js
function (skinObject) {
            if (skinObject['aria:skinNormalized']) {
                return;
            }
            for (var widget in skinObject) {
                if (skinObject.hasOwnProperty(widget) && widget != "general" && widget != "widgets") {
                    skinObject[widget] = this.normalizeWidget(widget, skinObject[widget]);
                }
            }
            skinObject.general = this.normalizeGeneral(skinObject.general, "PageGeneralCfg");
            if (skinObject.widgets) {
                skinObject.widgets = this.normalizeGeneral(skinObject.widgets, "WidgetGeneralCfg");
            }
            skinObject['aria:skinNormalized'] = true;
            return skinObject;
        }
function (skinObject) {
            if (skinObject['aria:skinNormalized']) {
                return;
            }
            for (var widget in skinObject) {
                if (skinObject.hasOwnProperty(widget) && widget != "general" && widget != "widgets") {
                    skinObject[widget] = this.normalizeWidget(widget, skinObject[widget]);
                }
            }
            skinObject.general = this.normalizeGeneral(skinObject.general, "PageGeneralCfg");
            if (skinObject.widgets) {
                skinObject.widgets = this.normalizeGeneral(skinObject.widgets, "WidgetGeneralCfg");
            }
            skinObject['aria:skinNormalized'] = true;
            return skinObject;
        }
function ( skinObject ) { if ( skinObject [ 'aria:skinNormalized' ] ) { return ; } for ( var widget in skinObject ) { if ( skinObject . hasOwnProperty ( widget ) && widget != "general" && widget != "widgets" ) { skinObject [ widget ] = this . normalizeWidget ( widget , skinObject [ widget ] ) ; } } skinObject . general = this . normalizeGeneral ( skinObject . general , "PageGeneralCfg" ) ; if ( skinObject . widgets ) { skinObject . widgets = this . normalizeGeneral ( skinObject . widgets , "WidgetGeneralCfg" ) ; } skinObject [ 'aria:skinNormalized' ] = true ; return skinObject ; }
Normalizes the skin, if not already done.
@param {Object} Skin object
Normalizes the skin if not already done .