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

Lightbox   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0

2 Functions

Rating   Name   Duplication   Size   Complexity  
A constructor 0 4 2
A 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
}