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

See #29366.

Built from https://develop.svn.wordpress.org/trunk@29601


git-svn-id: http://core.svn.wordpress.org/trunk@29375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-08-25 18:07:15 +00:00
parent 32e896f5b8
commit db0b4c5b4d
2 changed files with 1 additions and 7 deletions

View File

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

File diff suppressed because one or more lines are too long