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:
parent
153f807893
commit
a571b2fab0
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue