diff --git src/wp-includes/js/customize-preview-nav-menus.js src/wp-includes/js/customize-preview-nav-menus.js
index 27c5251..754e5ec 100644
|
|
|
wp.customize.navMenusPreview = wp.customize.MenusCustomizerPreview = ( function( |
| 21 | 21 | * Keep track of whether we synced to determine whether or not bindSettingListener |
| 22 | 22 | * should also initially fire the listener. This initial firing needs to wait until |
| 23 | 23 | * after all of the settings have been synced from the pane in order to prevent |
| 24 | | * an infinite selective fallback-refresh. Note that this sync handler will be |
| 25 | | * added after the sync handler in customize-preview.js, so it will be triggered |
| 26 | | * after all of the settings are added. |
| | 24 | * an infinite selective fallback-refresh. Note that the active message is sent |
| | 25 | * from the controls once the synced message is sent from the preview. |
| 27 | 26 | */ |
| 28 | | api.preview.bind( 'sync', function() { |
| | 27 | api.preview.bind( 'active', function() { |
| 29 | 28 | synced = true; |
| 30 | 29 | } ); |
| 31 | 30 | |
diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
index f6dfa0b..3e6cb7e 100644
|
|
|
wp.customize.selectiveRefresh = ( function( $, api ) { |
| 951 | 951 | setting.unbind( handleSettingChange ); |
| 952 | 952 | }; |
| 953 | 953 | |
| 954 | | api.bind( 'add', watchSettingChange ); |
| | 954 | api.preview.bind( 'sync', function() { |
| | 955 | api.bind( 'add', watchSettingChange ); |
| | 956 | } ); |
| 955 | 957 | api.bind( 'remove', unwatchSettingChange ); |
| 956 | 958 | api.each( function( setting ) { |
| 957 | 959 | setting.bind( handleSettingChange ); |