WordPress.org

Make WordPress Core

Changeset 22530


Ignore:
Timestamp:
11/10/2012 09:57:28 AM (8 years ago)
Author:
koopersmith
Message:

Media: Account for a race condition when deleting an edit gallery frame. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/mce-view.js

    r22508 r22530  
    741741                // then detach it from the DOM and remove the reference.
    742742                this.frame.on( 'close', function() {
    743                     this.frame.detach();
     743                    if ( this.frame )
     744                        this.frame.detach();
    744745                    delete this.frame;
    745746                }, this );
Note: See TracChangeset for help on using the changeset viewer.