<commit_before>define(function(require) {
    'use strict';

    var  WidgetPickerFilterView;
    var _ = require('underscore');
    var BaseView = require('oroui/js/app/views/base/view');

    WidgetPickerFilterView = BaseView.extend({
        template: require('tpl!oroui/templates/widget-picker/widget-picker-filter-view.html'),
        autoRender: true,
        events: {
            'keyup [data-role="widget-picker-search"]': 'onSearch',
            'change [data-role="widget-picker-search"]': 'onSearch',
            'paste [data-role="widget-picker-search"]': 'onSearch'
        },

        /**
         * @inheritDoc
         */
        initialize: function(options) {
            this.onSearch = _.debounce(this.onSearch, 100);
            WidgetPickerFilterView.__super__.initialize.apply(this, arguments);
        },

        /**
         *
         * @param {Event} e
         */
        onSearch: function(e) {
            this.model.set('search', e.currentTarget.value);
        }
    });

    return WidgetPickerFilterView;
});
<commit_msg>BAP-10602: Search result doesn't cleared in Add Widget if use IE control<commit_after>define(function(require) {
    'use strict';

    var  WidgetPickerFilterView;
    var _ = require('underscore');
    var BaseView = require('oroui/js/app/views/base/view');

    WidgetPickerFilterView = BaseView.extend({
        template: require('tpl!oroui/templates/widget-picker/widget-picker-filter-view.html'),
        autoRender: true,
        events: {
            'keyup [data-role="widget-picker-search"]': 'onSearch',
            'change [data-role="widget-picker-search"]': 'onSearch',
            'paste [data-role="widget-picker-search"]': 'onSearch',
            'mouseup [data-role="widget-picker-search"]': 'onSearch'
        },

        /**
         * @inheritDoc
         */
        initialize: function(options) {
            this.onSearch = _.debounce(this.onSearch, 100);
            WidgetPickerFilterView.__super__.initialize.apply(this, arguments);
        },

        /**
         *
         * @param {Event} e
         */
        onSearch: function(e) {
            this.model.set('search', e.currentTarget.value);
        }
    });

    return WidgetPickerFilterView;
});

{'fraction_non_alphanumeric': 0.14489522960321, 'fraction_numerical': 0.00490414623272403, 'mean_word_length': 2.228776978417266, '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': '5112007', 'n_tokens_mistral': 663, 'n_tokens_neox': 641, 'n_words': 100}