| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 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) { |
||
|
|
|||
| 22 | $(this).closest('td').find('.validation-failed').remove(); |
||
| 23 | $(this).closest('.error').removeClass('error'); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | }); |
||
| 27 | |||
| 28 | return PriceListsComponent; |
||
| 29 | }); |
||
| 30 |
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.