src/aria/widgets/frames/FrameWithIcons.js
function (skinObject, hideIconNames) {
            // normalize the skin:
            if (skinObject.iconsLeft == null || skinObject.iconsLeft === "") {
                skinObject.iconsLeft = [];
            } else if (ariaUtilsType.isString(skinObject.iconsLeft)) {
                skinObject.iconsLeft = skinObject.iconsLeft.split(',');
            }
            if (skinObject.iconsRight == null || skinObject.iconsRight === "") {
                skinObject.iconsRight = [];
            } else if (ariaUtilsType.isString(skinObject.iconsRight)) {
                skinObject.iconsRight = skinObject.iconsRight.split(',');
            }

            var iconsLeft = this._filterIcons(skinObject.iconsLeft, hideIconNames);
            var iconsRight = this._filterIcons(skinObject.iconsRight, hideIconNames);

            return {
                iconsLeft : iconsLeft,
                iconsRight : iconsRight,
                hasIcons : iconsLeft.length > 0 || iconsRight.length > 0
            };
        }
function (skinObject, hideIconNames) {
            // normalize the skin:
            if (skinObject.iconsLeft == null || skinObject.iconsLeft === "") {
                skinObject.iconsLeft = [];
            } else if (ariaUtilsType.isString(skinObject.iconsLeft)) {
                skinObject.iconsLeft = skinObject.iconsLeft.split(',');
            }
            if (skinObject.iconsRight == null || skinObject.iconsRight === "") {
                skinObject.iconsRight = [];
            } else if (ariaUtilsType.isString(skinObject.iconsRight)) {
                skinObject.iconsRight = skinObject.iconsRight.split(',');
            }

            var iconsLeft = this._filterIcons(skinObject.iconsLeft, hideIconNames);
            var iconsRight = this._filterIcons(skinObject.iconsRight, hideIconNames);

            return {
                iconsLeft : iconsLeft,
                iconsRight : iconsRight,
                hasIcons : iconsLeft.length > 0 || iconsRight.length > 0
            };
        }
function ( skinObject , hideIconNames ) { // normalize the skin: if ( skinObject . iconsLeft == null || skinObject . iconsLeft === "" ) { skinObject . iconsLeft = [ ] ; } else if ( ariaUtilsType . isString ( skinObject . iconsLeft ) ) { skinObject . iconsLeft = skinObject . iconsLeft . split ( ',' ) ; } if ( skinObject . iconsRight == null || skinObject . iconsRight === "" ) { skinObject . iconsRight = [ ] ; } else if ( ariaUtilsType . isString ( skinObject . iconsRight ) ) { skinObject . iconsRight = skinObject . iconsRight . split ( ',' ) ; } var iconsLeft = this . _filterIcons ( skinObject . iconsLeft , hideIconNames ) ; var iconsRight = this . _filterIcons ( skinObject . iconsRight , hideIconNames ) ; return { iconsLeft : iconsLeft , iconsRight : iconsRight , hasIcons : iconsLeft . length > 0 || iconsRight . length > 0 } ; }
Computes the icons and returns the information about if the frame has icons or not.
@param {Object} skinObject Skin class object
@param {Array} hideIconNames Icons to be hidden
@return {Object}
Computes the icons and returns the information about if the frame has icons or not .