Make WordPress Core

Changeset 34557


Ignore:
Timestamp:
09/25/2015 07:54:00 PM (9 years ago)
Author:
westonruter
Message:

Customizer: Fix usage of jQuery.contains() allowing active state changes to again animate control visibility.

Aligns usage of jQuery.contains() in a control's onChangeActive method with the existing usage in the corresponding onChangeActive method for panels and sections.

Props nikeo.
Fixes #33509.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-controls.js

    r34188 r34557  
    15361536            }
    15371537
    1538             if ( ! $.contains( document, this.container ) ) {
     1538            if ( ! $.contains( document, this.container[0] ) ) {
    15391539                // jQuery.fn.slideUp is not hiding an element if it is not in the DOM
    15401540                this.container.toggle( active );
Note: See TracChangeset for help on using the changeset viewer.