Completed
Pull Request — master (#1710)
by Aristeides
18:06 queued 08:13
created

controls/js/src/kirki.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 30
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
nc 1
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 3
mnd 1
bc 3
fnc 2
bpm 1.5
cpm 1.5
noi 2
1
var kirki = {
2
3
	initialized: false,
4
5
	/**
6
	 * Initialize the object.
7
	 *
8
	 * @since 3.0.17
9
	 * @returns {null}
10
	 */
11
	initialize: function() {
12
		var self = this;
13
14
		// We only need to initialize once.
15
		if ( self.initialized ) {
16
			return;
17
		}
18
19
		setTimeout( function() {
20
			kirki.util.webfonts.standard.initialize();
21
			kirki.util.webfonts.google.initialize();
22
		}, 150 );
23
24
		// Mark as initialized.
25
		self.initialized = true;
26
	}
27
};
28
29
// Initialize the kirki object.
30
kirki.initialize();
31