<commit_before>﻿var ExtensionPanelView = ContainerView.extend({
    className: 'pl-extension-panel',

    initialize: function () {
        ContainerView.prototype.initialize.apply(this);
        this.extensionObject = null;
    },

    render: function () {
        this.prerenderingActions();

        if (!this.extensionObject) {
            this.initExtensionObject();
        }

        this.extensionObject.render();

        this.postrenderingActions();
        return this;
    },

    updateGrouping: function(){

    },

    initExtensionObject: function () {
        var extensionName = this.model.get('extensionName'),
            context = this.model.get('context'),
            itemTemplate = this.model.get('itemTemplate'),
            parameters = this.model.get('parameters');

        this.extensionObject = new window[extensionName](context, {$el: this.$el, parameters: parameters, itemTemplate: itemTemplate});
    }
});<commit_msg>UI-1427: в параметрах ExtensionPanel не приходит items #resolved<commit_after>﻿var ExtensionPanelView = ContainerView.extend({
    className: 'pl-extension-panel',

    initialize: function () {
        ContainerView.prototype.initialize.apply(this);
        this.extensionObject = null;
    },

    render: function () {
        this.prerenderingActions();

        if (!this.extensionObject) {
            this.initExtensionObject();
        }

        this.extensionObject.render();

        this.postrenderingActions();
        return this;
    },

    updateGrouping: function(){

    },

    initExtensionObject: function () {
        var extensionName = this.model.get('extensionName'),
            context = this.model.get('context'),
            itemTemplate = this.model.get('itemTemplate'),
            parameters = this.model.get('parameters'),
            items = this.model.get('items');

        this.extensionObject = new window[extensionName](context, {$el: this.$el, parameters: parameters, itemTemplate: itemTemplate, items: items});
    }
});
{'fraction_non_alphanumeric': 0.12859980139026814, 'fraction_numerical': 0.0019860973187686196, 'mean_word_length': 2.717712177121771, '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': '2134290', 'n_tokens_mistral': 526, 'n_tokens_neox': 506, 'n_words': 95}