diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 1e5103a..84f7faf 100644
|
|
|
284 | 284 | * @param {Object} args.duration |
285 | 285 | * @param {Object} args.completeCallback |
286 | 286 | */ |
287 | | onChangeActive: function ( active, args ) { |
| 287 | onChangeActive: function( active, args ) { |
288 | 288 | var duration, construct = this; |
| 289 | if ( args.unchanged ) { |
| 290 | if ( args.completeCallback ) { |
| 291 | args.completeCallback(); |
| 292 | } |
| 293 | return; |
| 294 | } |
| 295 | |
289 | 296 | duration = ( 'resolved' === api.previewer.deferred.active.state() ? args.duration : 0 ); |
290 | 297 | if ( ! $.contains( document, construct.container[0] ) ) { |
291 | 298 | // jQuery.fn.slideUp is not hiding an element if it is not in the DOM |
… |
… |
|
1497 | 1504 | * @param {Callback} args.completeCallback |
1498 | 1505 | */ |
1499 | 1506 | onChangeActive: function ( active, args ) { |
| 1507 | if ( args.unchanged ) { |
| 1508 | if ( args.completeCallback ) { |
| 1509 | args.completeCallback(); |
| 1510 | } |
| 1511 | return; |
| 1512 | } |
| 1513 | |
1500 | 1514 | if ( ! $.contains( document, this.container ) ) { |
1501 | 1515 | // jQuery.fn.slideUp is not hiding an element if it is not in the DOM |
1502 | 1516 | this.container.toggle( active ); |