/**
 * File radio-image.js
 *
 * Handles toggling the radio images button
 *
 * @package IS
 */

	wp.customize.controlConstructor['ast-radio-image'] = wp.customize.Control.extend({

		ready: function() {

			'use strict';

			var control = this;

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

		}

	});
