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

Lightbox.constructor   A

Complexity

Conditions 2

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
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
}