Make WordPress Core

Ticket #33494: 33494.1.diff

File 33494.1.diff, 1.1 KB (added by westonruter, 9 years ago)

Additional change: https://github.com/xwp/wordpress-develop/commit/54e8da6695f20e04a050b40923adf734d25a7a09

  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 1e5103a..6b9697b 100644
     
    210210                        container.active.bind( function ( active ) {
    211211                                var args = container.activeArgumentsQueue.shift();
    212212                                args = $.extend( {}, container.defaultActiveArguments, args );
    213                                 active = ( active && container.isContextuallyActive() );
    214213                                container.onChangeActive( active, args );
    215214                        });
    216215                        container.expanded.bind( function ( expanded ) {
     
    284283                 * @param {Object}  args.duration
    285284                 * @param {Object}  args.completeCallback
    286285                 */
    287                 onChangeActive: function ( active, args ) {
     286                onChangeActive: function( active, args ) {
    288287                        var duration, construct = this;
     288                        active = ( active && construct.isContextuallyActive() );
    289289                        duration = ( 'resolved' === api.previewer.deferred.active.state() ? args.duration : 0 );
    290290                        if ( ! $.contains( document, construct.container[0] ) ) {
    291291                                // jQuery.fn.slideUp is not hiding an element if it is not in the DOM