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:
Daryl Koopersmith 2012-11-09 12:43:39 +00:00
parent b9ed8db596
commit 880b1e4b81

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