src/aria/widgets/Icon.js
function (newIcon) {

            // check if initialization was successful
            if (!this._iconInfo) {
                return;
            }

            var iconInfo = this._getIconInfo(newIcon);
            // check
            if (iconInfo) {
                var domElt = this.getDom();
                domElt.style.cssText = this._getIconStyle(iconInfo);
                domElt.className = this._getIconClasses(iconInfo);
            }

            this._iconInfo = iconInfo;
        }
function (newIcon) {

            // check if initialization was successful
            if (!this._iconInfo) {
                return;
            }

            var iconInfo = this._getIconInfo(newIcon);
            // check
            if (iconInfo) {
                var domElt = this.getDom();
                domElt.style.cssText = this._getIconStyle(iconInfo);
                domElt.className = this._getIconClasses(iconInfo);
            }

            this._iconInfo = iconInfo;
        }
function ( newIcon ) { // check if initialization was successful if ( ! this . _iconInfo ) { return ; } var iconInfo = this . _getIconInfo ( newIcon ) ; // check if ( iconInfo ) { var domElt = this . getDom ( ) ; domElt . style . cssText = this . _getIconStyle ( iconInfo ) ; domElt . className = this . _getIconClasses ( iconInfo ) ; } this . _iconInfo = iconInfo ; }
Change the style to display a different icon.
@param {String} newIcon
Change the style to display a different icon .