WordPress.org

Make WordPress Core

Changeset 22509


Ignore:
Timestamp:
11/09/2012 12:43:39 PM (8 years ago)
Author:
koopersmith
Message:

Media JS: Pass the region instance through when firing the activate and deactivate events. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22508 r22509  
    8383        mode: function( mode ) {
    8484            if ( mode ) {
    85                 this.trigger('deactivate');
     85                this.trigger( 'deactivate', this );
    8686                this._mode = mode;
    87                 return this.trigger('activate');
     87                return this.trigger( 'activate', this );
    8888            }
    8989            return this._mode;
Note: See TracChangeset for help on using the changeset viewer.