Test Setup Failed
Push — master ( cd1dab...2a689d )
by
unknown
03:51
created

price-lists-errors-handler.js ➔ define   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 29

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 29
rs 8.8571
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A price-lists-errors-handler.js ➔ ... ➔ PriceListsComponent 0 3 1
A price-lists-errors-handler.js ➔ ... ➔ BaseComponent.extend.initialize 0 7 1
1
define(function(require) {
2
    'use strict';
3
4
    var PriceListsComponent;
5
    var $ = require('jquery');
6
    var BaseComponent = require('oroui/js/app/components/base/component');
7
8
    PriceListsComponent = BaseComponent.extend({
9
        /**
10
         * @inheritDoc
11
         */
12
        constructor: function PriceListsComponent() {
13
            PriceListsComponent.__super__.constructor.apply(this, arguments);
14
        },
15
16
        /**
17
         * @inheritDoc
18
         */
19
        initialize: function(options) {
20
            var $el = options._sourceElement;
21
            $el.find('input[type="hidden"]').on('change', function(e) {
0 ignored issues
show
Unused Code introduced by
The parameter e is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
22
                $(this).closest('td').find('.validation-failed').remove();
23
                $(this).closest('.error').removeClass('error');
24
            });
25
        }
26
    });
27
28
    return PriceListsComponent;
29
});
30