Media JS: Pass the region instance through when firing the activate and deactivate events. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22509 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
68b5140382
commit
80d6ef3b28
@ -82,9 +82,9 @@
|
|||||||
|
|
||||||
mode: function( mode ) {
|
mode: function( mode ) {
|
||||||
if ( mode ) {
|
if ( mode ) {
|
||||||
this.trigger('deactivate');
|
this.trigger( 'deactivate', this );
|
||||||
this._mode = mode;
|
this._mode = mode;
|
||||||
return this.trigger('activate');
|
return this.trigger( 'activate', this );
|
||||||
}
|
}
|
||||||
return this._mode;
|
return this._mode;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user