generic.js (383B)
1 wp.customize.controlConstructor['kirki-generic'] = wp.customize.Control.extend({ 2 3 // When we're finished loading continue processing 4 ready: function() { 5 6 'use strict'; 7 8 var control = this; 9 10 // Save the value 11 this.container.on( 'change keyup paste', control.params.choices.element, _.debounce(function() { 12 control.setting.set( jQuery( this ).val() ); 13 },600)); 14 15 } 16 17 });