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
This commit is contained in:
Scott Taylor 2014-03-05 18:31:07 +00:00
parent 153f807893
commit a571b2fab0
1 changed files with 1 additions and 5 deletions

View File

@ -6147,8 +6147,6 @@
this.listenTo( this.controller, 'close', this.close ); 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 ); media.view.Settings.AttachmentDisplay.prototype.initialize.apply( this, arguments );
}, },
@ -6167,8 +6165,6 @@
close : function() { close : function() {
this.mejs.pause(); this.mejs.pause();
this.remove(); this.remove();
delete this.mejs;
delete this.mejsInstance;
}, },
player : function (mejs) { player : function (mejs) {
@ -6187,7 +6183,7 @@
media.view.Settings.AttachmentDisplay.prototype.render.apply( this, arguments ); media.view.Settings.AttachmentDisplay.prototype.render.apply( this, arguments );
setTimeout( function() { self.resetFocus(); }, 10 ); setTimeout( function() { self.resetFocus(); }, 10 );
this.mejsInstance = new MediaElementPlayer( this.$('audio').get(0), settings ); new MediaElementPlayer( this.$('audio').get(0), settings );
return this; return this;
}, },