Make WordPress Core

Changeset 29601


Ignore:
Timestamp:
08/25/2014 06:06:06 PM (9 years ago)
Author:
wonderboymusic
Message:

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

See #29366.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r29585 r29601  
    17771777            // Add a CSS class to the frame so elements can be styled for the mode.
    17781778            this.$el.addClass( 'mode-' + mode );
    1779             /**
    1780              * Frame mode activation event.
    1781              *
    1782              * @event this#{mode}:activate
    1783              */
    1784             this.trigger( mode + ':activate' );
    17851779
    17861780            return this;
Note: See TracChangeset for help on using the changeset viewer.