Customizer: Prevent JS error during init when nav_menus panel is removed by plugin.

Fixes #33411 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@33753 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2015-08-26 06:42:16 +00:00
parent 28217ae6a0
commit e32f3cd3e1

View File

@ -119,6 +119,10 @@
initialize: function() {
var self = this;
if ( ! api.panel.has( 'nav_menus' ) ) {
return;
}
this.$search = $( '#menu-items-search' );
this.sectionContent = this.$el.find( '.accordion-section-content' );