src/aria/widgets/Icon.js
function (icon) {
            var iconParts = icon.split(":");
            if (iconParts.length !== 2) {
                this.$logError(this.ICON_BADLY_FORMATTED, [icon]);
                return null;
            } else {
                var iconInfo = aria.widgets.AriaSkinInterface.getIcon(iconParts[0], iconParts[1]);
                if (!iconInfo) {
                    this.$logError(this.ICON_NOT_FOUND, [icon]);
                    return null;
                }
                return iconInfo;
            }
        }
function (icon) {
            var iconParts = icon.split(":");
            if (iconParts.length !== 2) {
                this.$logError(this.ICON_BADLY_FORMATTED, [icon]);
                return null;
            } else {
                var iconInfo = aria.widgets.AriaSkinInterface.getIcon(iconParts[0], iconParts[1]);
                if (!iconInfo) {
                    this.$logError(this.ICON_NOT_FOUND, [icon]);
                    return null;
                }
                return iconInfo;
            }
        }
function ( icon ) { var iconParts = icon . split ( ":" ) ; if ( iconParts . length !== 2 ) { this . $logError ( this . ICON_BADLY_FORMATTED , [ icon ] ) ; return null ; } else { var iconInfo = aria . widgets . AriaSkinInterface . getIcon ( iconParts [ 0 ] , iconParts [ 1 ] ) ; if ( ! iconInfo ) { this . $logError ( this . ICON_NOT_FOUND , [ icon ] ) ; return null ; } return iconInfo ; } }
Gets the icon info
@param {String} icon, something like myLib:myIcon
@protected
@return {Object}
Gets the icon info