/**
 * Custom scripts for Radio Image Control
 *
 * @package Ogma
 */

wp.customize.controlConstructor['ogma-radio-icons'] = wp.customize.Control.extend({

    ready: function() {

        'use strict';

        var control = this;

        // Change the value
        this.container.on( 'change', 'input', function() {
            control.setting.set( jQuery( this ).val() );
        });

    }

});