]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/media-grid.js
WordPress 4.1.1-scripts
[autoinstalls/wordpress.git] / wp-includes / js / media-grid.js
index 5bf3716d5c7414ccff0dc91828d5e94d54adbafb..25670e16aee429c14dbacb2893669cae26afd450 100644 (file)
                        media.mixin.removeAllPlayers();
                        this.$( 'audio, video' ).each( function (i, elem) {
                                var el = media.view.MediaDetails.prepareSrc( elem );
-                               new MediaElementPlayer( el, media.mixin.mejsSettings );
+                               setTimeout( function() {
+                                       new MediaElementPlayer( el, media.mixin.mejsSettings );
+                               }, 0 );
                        } );
                }
        });