WordPress.org

Make WordPress Core

Changeset 30992


Ignore:
Timestamp:
12/23/2014 05:23:16 PM (6 years ago)
Author:
ocean90
Message:

Customizer: Use correct event variable when moving widgets to another widget area.

Fixes "ReferenceError: event is not defined error." in Firefox.

props tywayne.
fixes #30818.

File:
1 edited

Legend:

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

    r30760 r30992  
    685685             * Handle selecting a sidebar to move to
    686686             */
    687             this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( e ) {
     687            this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( event ) {
    688688                if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
    689689                    return;
    690690                }
    691                 e.preventDefault();
     691                event.preventDefault();
    692692                selectSidebarItem( $( this ) );
    693693            } );
Note: See TracChangeset for help on using the changeset viewer.