I have a huge Theme Customizer with more than 3000 controls and I'm using jQuery UI to group and style them. The thing is that Wordpress destroys my Customizer UI when it sorts controls within sections and I need to disable (unbind) this.
I need to unbind this part:
$( [ api.panel, api.section, api.control ] ).each( function ( i, values ) {
var debouncedReflowPaneContents = _.debounce( api.reflowPaneContents, api.settings.timeouts.reflowPaneContents );
values.bind( 'add', debouncedReflowPaneContents );
values.bind( 'change', debouncedReflowPaneContents );
values.bind( 'remove', debouncedReflowPaneContents );
} );
I need to override this code from my custom javaSript file which is responsible for Customizer UI. I know that if I increase "api.settings.timeouts.reflowPaneContents" time or if I unbind "values.bind( 'add', debouncedReflowPaneContents );" this will help but I don't know how to do this.
This is URGENT. Please help!
Regards, Duke