src/aria/widgets/errorlist/ErrorListTemplateScript.js
function () {
            var messageTypes = this.data.messageTypes;
            var res = this.DEFAULT_ICON;
            var icons = this.ICONS;
            for (var i = 0, l = icons.length; i < l; i++) {
                var curIcon = icons[i];
                if (messageTypes[curIcon.type] > 0) {
                    res = curIcon.icon;
                    break;
                }
            }
            return res;
        }
function () {
            var messageTypes = this.data.messageTypes;
            var res = this.DEFAULT_ICON;
            var icons = this.ICONS;
            for (var i = 0, l = icons.length; i < l; i++) {
                var curIcon = icons[i];
                if (messageTypes[curIcon.type] > 0) {
                    res = curIcon.icon;
                    break;
                }
            }
            return res;
        }
function ( ) { var messageTypes = this . data . messageTypes ; var res = this . DEFAULT_ICON ; var icons = this . ICONS ; for ( var i = 0 , l = icons . length ; i < l ; i ++ ) { var curIcon = icons [ i ] ; if ( messageTypes [ curIcon . type ] > 0 ) { res = curIcon . icon ; break ; } } return res ; }
Get the icon name for the current message type
@return {String} Icon name
Get the icon name for the current message type