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:
parent
9a52936277
commit
361d664db5
@ -1776,12 +1776,6 @@
|
||||
this.activeModes.add( [ { id: mode } ] );
|
||||
// Add a CSS class to the frame so elements can be styled for the mode.
|
||||
this.$el.addClass( 'mode-' + mode );
|
||||
/**
|
||||
* Frame mode activation event.
|
||||
*
|
||||
* @event this#{mode}:activate
|
||||
*/
|
||||
this.trigger( mode + ':activate' );
|
||||
|
||||
return this;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user