From 977b4a7c26e80ae90e8bc6641b740e03ce943784 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 16 Jul 2014 19:35:55 +0000 Subject: [PATCH] Cleanup after [29179]: * Remove `wp.media.mixin.pauseAllPlayers()` - was only ever intended to be used in MCE views, reaches too far into global scope. Rendered irrelevant since [28364]. * Remove `wp.media.mixin.pausePlayers()` - added in [28364]. MCE views no longer keep track of player instances and call mixin methods, they refer to their child iframes and call MEjs methods on the iframe's `window.mejs.players`. See #28905. git-svn-id: https://develop.svn.wordpress.org/trunk@29194 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-audiovideo.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/wp-includes/js/media-audiovideo.js b/src/wp-includes/js/media-audiovideo.js index 4bf622f764..5e02ba8124 100644 --- a/src/wp-includes/js/media-audiovideo.js +++ b/src/wp-includes/js/media-audiovideo.js @@ -14,17 +14,6 @@ */ wp.media.mixin = { mejsSettings: baseSettings, - /** - * Pauses every instance of MediaElementPlayer - */ - pauseAllPlayers: function() { - var p; - if ( window.mejs && window.mejs.players ) { - for ( p in window.mejs.players ) { - window.mejs.players[p].pause(); - } - } - }, removeAllPlayers: function() { var p; @@ -37,15 +26,6 @@ } }, - /** - * Pauses the current object's instances of MediaElementPlayer - */ - pausePlayers: function() { - _.each( this.players, function (player) { - player.pause(); - } ); - }, - /** * Override the MediaElement method for removing a player. * MediaElement tries to pull the audio/video tag out of