Completed
Push — master ( b3bd19...c86cb5 )
by D
05:13 queued 18s
created

src/js/modules/lightbox.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 10
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 6
mnd 1
bc 1
fnc 2
dl 0
loc 10
rs 10
bpm 0.5
cpm 1.5
noi 2
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A Lightbox.constructor 0 4 2
A Lightbox.showTargets 0 3 1
1
class Lightbox {
2
    constructor(options) {
3
        this.targets = typeof options.targets === 'string' ? document.querySelectorAll(options.targets) : options.targets;
4
        this.showTargets
0 ignored issues
show
introduced by
The result of the property access to this.showTargets is not used.
Loading history...
5
    }
6
7
    showTargets() {
8
        console.log(this.targets)
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
9
    }
10
}