Completed
Push — master ( 5543da...b12456 )
by Donata
02:40
created

src/javascript/video-block.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 14
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 14
rs 10
c 0
b 0
f 0
cc 0
nc 1
noi 0
mnd 1
bc 3
fnc 2
bpm 1.5
cpm 1.5

1 Function

Rating   Name   Duplication   Size   Complexity  
A video-block.js ➔ ??? 0 12 2
1
import Video from './blocks/video/modules/Video';
2
3
document.addEventListener("DOMContentLoaded", () => {
4
    window.HELP_IMPROVE_VIDEOJS = false;
5
6
    let elements = document.querySelectorAll('*[data-module="video-block"]');
7
    if (elements.length > 0) {
8
        window.videos = [];
9
10
        [].forEach.call(elements, (element) => {
11
            window.videos.push(new Video(element));
12
        });
13
    }
14
});