b0y-101 Mini Shell


Current Path : E:/www/tcas/wp-content/plugins/kirki/kirki-packages/module-preset/src/
File Upload :
Current File : E:/www/tcas/wp-content/plugins/kirki/kirki-packages/module-preset/src/script.js

/* global kirkiPresetControls */
jQuery( document ).ready( function() {
	_.each( kirkiPresetControls, function( children, parentControl ) {
		wp.customize( parentControl, function( value ) {
			value.bind( function( to ) {
				_.each( children, function( preset, valueToListen ) {
					if ( valueToListen === to ) {
						_.each( preset.settings, function( controlValue, controlID ) {
							wp.customize( controlID ).set( controlValue );
						} );
					}
				} );
			} );
		} );
	} );
} );

Copyright © 2019 by b0y-101