<commit_before>var onReady = require('kwf/on-ready');
var $ = require('jQuery');
var getKwcRenderUrl = require('kwf/get-kwc-render-url');

onReady.onRender('.kwcClass',function(el) {
    var url = getKwcRenderUrl();

    $.each($('.kwfUp-addToCardForm .kwfUp-formContainer'), $.proxy(function(index, form) {
        $(form).on('kwfUp-form-submitSuccess', $.proxy(function(event) {
            $.ajax({
                url: url,
                data: { componentId: el.data('component-id') },
                success: function(response) {
                    el.html(response);
                    onReady.callOnContentReady(el, {newRender: true});
                }
            });
        }, el));
    }, el));
}, { priority: 0 }); //call after Kwc.Form.Component
<commit_msg>Fix wrong exchange of cartbox-domelement<commit_after>var onReady = require('kwf/on-ready');
var $ = require('jQuery');
var getKwcRenderUrl = require('kwf/get-kwc-render-url');

onReady.onRender('.kwcClass',function(el) {
    var url = getKwcRenderUrl();

    $.each($('.kwfUp-addToCardForm .kwfUp-formContainer'), $.proxy(function(index, form) {
        $(form).on('kwfUp-form-submitSuccess', $.proxy(function(event) {
            $.ajax({
                url: url,
                data: { componentId: el.data('component-id') },
                success: function(response) {
                    $('.kwcClass').html(response);
                    onReady.callOnContentReady(el, {newRender: true});
                }
            });
        }, el));
    }, el));
}, { priority: 0 }); //call after Kwc.Form.Component

{'fraction_non_alphanumeric': 0.1738857501569366, 'fraction_numerical': 0.0012554927809165098, 'mean_word_length': 2.273100616016427, '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': '3851191', 'n_tokens_mistral': 492, 'n_tokens_neox': 475, 'n_words': 78}