WordPress.org

Make WordPress Core

Ticket #30701: 30701.diff

File 30701.diff, 544 bytes (added by westonruter, 7 years ago)

Import missing wp.customize.Control.prototype._toggleActive

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

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index ad54e01..6a6f5a1 100644
     
    913913                 */
    914914                deactivate: Container.prototype.deactivate,
    915915
     916                /**
     917                 * Re-use _toggleActive from Container class.
     918                 *
     919                 * @access private
     920                 */
     921                _toggleActive: Container.prototype._toggleActive,
     922
    916923                dropdownInit: function() {
    917924                        var control      = this,
    918925                                statuses     = this.container.find('.dropdown-status'),