Make WordPress Core

Changeset 36583


Ignore:
Timestamp:
02/19/2016 03:46:59 AM (11 years ago)
Author:
westonruter
Message:

Customize: Prevent consecutive refresh requests from preview from causing JS error.

Fixes "Uncaught TypeError: this.targetWindow is not a function".

See #27355.
Fixes #35866.

File:
1 edited

Legend:

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

    r33911 r36583  
    705705                        event = event.originalEvent;
    706706
    707                         if ( ! this.targetWindow() )
     707                        if ( ! this.targetWindow || ! this.targetWindow() ) {
    708708                                return;
     709                        }
    709710
    710711                        // Check to make sure the origin is valid.
Note: See TracChangeset for help on using the changeset viewer.