Media JS: Pass the region instance through when firing the activate and deactivate events. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@22509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9ed8db596
commit
880b1e4b81
|
@ -82,9 +82,9 @@
|
|||
|
||||
mode: function( mode ) {
|
||||
if ( mode ) {
|
||||
this.trigger('deactivate');
|
||||
this.trigger( 'deactivate', this );
|
||||
this._mode = mode;
|
||||
return this.trigger('activate');
|
||||
return this.trigger( 'activate', this );
|
||||
}
|
||||
return this._mode;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue