<commit_before>/**
 * @class IconView
 * @arguments ControlView
 */
var IconView = ControlView.extend({

    tagName: 'i',

    render: function(){
        this.prerenderingActions();
        this.updateProperties();
        this.trigger('render');
        this.postrenderingActions();
        return this;
    },

    renderIcon: function () {
        var value = this.model.get('value');
        this.$el.attr('class', 'pl-icon fa fa-' + value);
    },

    initHandlersForProperties: function () {
        ControlView.prototype.initHandlersForProperties.call(this);
        this.listenTo(this.model, 'change:value', this.updateValue);
    },

    updateProperties: function () {
        ControlView.prototype.updateProperties.call(this);
        this.updateValue();
    },

    updateValue: function () {
        this.renderIcon();
    }

});<commit_msg>UI-1995: Icon: value с биндингом, возвращающим значение, не показывает картинку#fixed<commit_after>/**
 * @class IconView
 * @arguments ControlView
 */
var IconView = ControlView.extend({

    className: 'pl-icon fa',

    tagName: 'i',

    render: function(){
        this.prerenderingActions();
        this.updateProperties();
        this.trigger('render');
        this.postrenderingActions();
        return this;
    },

    renderIcon: function () {
        var value = this.model.get('value');
        this.switchClass('fa', value);
    },

    initHandlersForProperties: function () {
        ControlView.prototype.initHandlersForProperties.call(this);
        this.listenTo(this.model, 'change:value', this.updateValue);
    },

    updateProperties: function () {
        ControlView.prototype.updateProperties.call(this);
        this.updateValue();
    },

    updateValue: function () {
        this.renderIcon();
    }

});
{'fraction_non_alphanumeric': 0.14023372287145242, 'fraction_numerical': 0.0022259321090706734, 'mean_word_length': 2.738045738045738, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2210248', 'n_tokens_mistral': 525, 'n_tokens_neox': 515, 'n_words': 91}