Changeset 29194
- Timestamp:
- 07/16/2014 07:35:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-audiovideo.js
r29179 r29194 15 15 wp.media.mixin = { 16 16 mejsSettings: baseSettings, 17 /**18 * Pauses every instance of MediaElementPlayer19 */20 pauseAllPlayers: function() {21 var p;22 if ( window.mejs && window.mejs.players ) {23 for ( p in window.mejs.players ) {24 window.mejs.players[p].pause();25 }26 }27 },28 17 29 18 removeAllPlayers: function() { … … 36 25 } 37 26 } 38 },39 40 /**41 * Pauses the current object's instances of MediaElementPlayer42 */43 pausePlayers: function() {44 _.each( this.players, function (player) {45 player.pause();46 } );47 27 }, 48 28
Note: See TracChangeset
for help on using the changeset viewer.