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 ( e41b0b...dc385b )
by Steeven
07:00 queued 12s
created

DropdownWithScrollBar.constructor   A

Complexity

Conditions 3

Size

Total Lines 25
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 14
dl 0
loc 25
c 0
b 0
f 0
rs 9.7
cc 3
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
        elementItemsList.hide();
36
37
        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...
38
            elementItemsList.show().resize();
39
        });
40
41
        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...
42
            elementItemsList.hide();
43
        });
44
    }
45
}