From a571b2fab03f3810ad33eae2dd0bbd8ac0da15bf Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 5 Mar 2014 18:31:07 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@27414 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-views.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index 54a6c05ad3..e076ad81cf 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -6147,8 +6147,6 @@ this.listenTo( this.controller, 'close', this.close ); - // used in AttachmentDisplay.prototype.updateLinkTo - this.options.attachment = this.model.attachment; media.view.Settings.AttachmentDisplay.prototype.initialize.apply( this, arguments ); }, @@ -6167,8 +6165,6 @@ close : function() { this.mejs.pause(); this.remove(); - delete this.mejs; - delete this.mejsInstance; }, player : function (mejs) { @@ -6187,7 +6183,7 @@ media.view.Settings.AttachmentDisplay.prototype.render.apply( this, arguments ); setTimeout( function() { self.resetFocus(); }, 10 ); - this.mejsInstance = new MediaElementPlayer( this.$('audio').get(0), settings ); + new MediaElementPlayer( this.$('audio').get(0), settings ); return this; },