radio.js (280B)
1 wp.customize.controlConstructor['kirki-radio'] = wp.customize.Control.extend({ 2 3 ready: function() { 4 5 'use strict'; 6 7 var control = this; 8 9 // Change the value 10 this.container.on( 'change', 'input', function() { 11 control.setting.set( jQuery( this ).val() ); 12 }); 13 14 } 15 16 });