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.


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


git-svn-id: http://core.svn.wordpress.org/trunk@27261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-03-05 18:32:14 +00:00
parent 4676621110
commit 0ccc1d52ac
2 changed files with 2 additions and 6 deletions

View File

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

File diff suppressed because one or more lines are too long