File: /home/mgawa/public_html/wp-content/themes/flatsome2/inc/admin/kirki/assets/js/controls/checkbox.js
wp.customize.controlConstructor['kirki-checkbox'] = wp.customize.Control.extend({
// When we're finished loading continue processing
ready: function() {
'use strict';
var control = this,
value = control.setting._value;
// Change the value
this.container.on( 'change', 'input', function() {
// Get the checkbox status
value = ( jQuery( this ).is( ':checked' ) ) ? true : false;
// Set the value in the WordPress API
control.setting.set( value );
});
}
});