Media: when activating a mode after [29056], don't trigger the `{mode}:activate` event twice in a row.

See #29366.


git-svn-id: https://develop.svn.wordpress.org/trunk@29601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-08-25 18:06:06 +00:00
parent 9a52936277
commit 361d664db5
1 changed files with 0 additions and 6 deletions

View File

@ -1776,12 +1776,6 @@
this.activeModes.add( [ { id: mode } ] ); this.activeModes.add( [ { id: mode } ] );
// Add a CSS class to the frame so elements can be styled for the mode. // Add a CSS class to the frame so elements can be styled for the mode.
this.$el.addClass( 'mode-' + mode ); this.$el.addClass( 'mode-' + mode );
/**
* Frame mode activation event.
*
* @event this#{mode}:activate
*/
this.trigger( mode + ':activate' );
return this; return this;
}, },