Make WordPress Core

Changeset 27414


Ignore:
Timestamp:
03/05/2014 06:31:07 PM (11 years ago)
Author:
wonderboymusic
Message:

Audio doesn't have the same quirks as video in the media modal. We don't have to aggressively destroy the mejs instance.

See #27016.

File:
1 edited

Legend:

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

    r27411 r27414  
    61486148            this.listenTo( this.controller, 'close', this.close );
    61496149
    6150             // used in AttachmentDisplay.prototype.updateLinkTo
    6151             this.options.attachment = this.model.attachment;
    61526150            media.view.Settings.AttachmentDisplay.prototype.initialize.apply( this, arguments );
    61536151        },
     
    61686166            this.mejs.pause();
    61696167            this.remove();
    6170             delete this.mejs;
    6171             delete this.mejsInstance;
    61726168        },
    61736169
     
    61886184            setTimeout( function() { self.resetFocus(); }, 10 );
    61896185
    6190             this.mejsInstance = new MediaElementPlayer( this.$('audio').get(0), settings );
     6186            new MediaElementPlayer( this.$('audio').get(0), settings );
    61916187
    61926188            return this;
Note: See TracChangeset for help on using the changeset viewer.