Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,786 changes: 1,061 additions & 1,725 deletions src/js/_enqueues/vendor/mediaelement/mediaelement-and-player.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/js/_enqueues/vendor/mediaelement/mediaelement-migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
return $ !== undefined && el instanceof $ ? el[0] : el;
};

// Since MediaElement.js 7.0, `remove()` no longer removes the destroyed player
// from the `mejs.players` registry; restore that behavior so code iterating the
// registry (e.g. `wp.media.mixin.removeAllPlayers()`) does not act on dead players.
var remove = MediaElementPlayer.prototype.remove;
MediaElementPlayer.prototype.remove = function () {
var id = this.id;
remove.apply( this, arguments );
delete mejs.players[ id ];
};

// Add jQuery ONLY to most of custom features' arguments for backward compatibility; default features rely 100%
// on the arguments being HTML elements to work properly
MediaElementPlayer.prototype.buildfeatures = function ( player, controls, layers, media ) {
Expand Down
987 changes: 193 additions & 794 deletions src/js/_enqueues/vendor/mediaelement/mediaelement.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/_enqueues/vendor/mediaelement/mediaelement.min.js

Large diffs are not rendered by default.

Loading
Loading