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:
Daryl Koopersmith 2012-11-09 12:43:39 +00:00
parent 68b5140382
commit 80d6ef3b28
1 changed files with 2 additions and 2 deletions

View File

@ -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;
},