GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 2504f4...bbfc38 )
by
unknown
02:43
created

nt.shown.bs.dropdown   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
nop 1
1
/**
2
 * This file is part of the O2System Venus UI Framework package.
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 *
7
 * @author         Steeve Andrian Salim
8
 * @copyright      Copyright (c) Steeve Andrian Salim
9
 */
10
// ------------------------------------------------------------------------
11
12
import $ from "jquery";
13
14
/**
15
 * Class DropdownWithScrollBar
16
 * 
17
 * @package Components
18
 */
19
export default class DropdownWithScrollBar {
20
    constructor() {
21
        const element = $('.dropdown');
22
        const elementItemsList = $('.dropdown-item-list');
23
24
        /**
25
         * Adding nicescroll effect to the list
26
         */
27
        elementItemsList.niceScroll({
28
            cursorcolor: "#333",
29
            cursoropacitymax: 0.5,
30
            cursorwidth: "3px",
31
            horizrailenabled: false,
32
            autohidemode: false,
33
        });
34
35
        element.on("shown.bs.dropdown", 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...
36
            elementItemsList.show().resize();
37
        });
38
39
        element.on("hide.bs.dropdown", 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...
40
            elementItemsList.hide();
41
        });
42
    }
43
}