WordPress.org

Make WordPress Core

Changeset 39581


Ignore:
Timestamp:
12/12/2016 07:52:00 AM (18 months ago)
Author:
westonruter
Message:

Customize: Prevent edit shortcut from losing event handler after selective refresh.

Props sirbrillig.
See #27403.
Fixes #39100.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-selective-refresh.js

    r39345 r39581  
    122122            }
    123123            $shortcut = partial.createEditShortcut();
    124             partial.addEditShortcutToPlacement( placement, $shortcut );
    125124            $shortcut.on( 'click', function( event ) {
    126125                event.preventDefault();
     
    128127                partial.showControl();
    129128            } );
     129            partial.addEditShortcutToPlacement( placement, $shortcut );
    130130        },
    131131
Note: See TracChangeset for help on using the changeset viewer.