Make WordPress Core

Ticket #39430: 39430.diff

File 39430.diff, 1.2 KB (added by dlh, 8 years ago)
  • src/wp-admin/js/customize-controls.js

     
    564564                                }
    565565                        }
    566566
    567                         if ( ! $.contains( document, headContainer ) ) {
     567                        if ( ! $.contains( document, headContainer.get( 0 ) ) ) {
    568568                                // jQuery.fn.slideUp is not hiding an element if it is not in the DOM
    569569                                headContainer.toggle( active );
    570570                                if ( args.completeCallback ) {
     
    571571                                        args.completeCallback();
    572572                                }
    573573                        } else if ( active ) {
    574                                 headContainer.stop( true, true ).slideDown( duration, args.completeCallback );
     574                                headContainer.slideDown( duration, args.completeCallback );
    575575                        } else {
    576576                                if ( construct.expanded() ) {
    577577                                        construct.collapse({
    578578                                                duration: duration,
    579579                                                completeCallback: function() {
    580                                                         headContainer.stop( true, true ).slideUp( duration, args.completeCallback );
     580                                                        headContainer.slideUp( duration, args.completeCallback );
    581581                                                }
    582582                                        });
    583583                                } else {
    584                                         headContainer.stop( true, true ).slideUp( duration, args.completeCallback );
     584                                        headContainer.slideUp( duration, args.completeCallback );
    585585                                }
    586586                        }
    587587                },