summaryrefslogtreecommitdiff
path: root/extensions/TimedMediaHandler/resources/mw.MediaWikiPlayer.loader.js
blob: 6167418b0a941ea38d01f6b81f96f5c165bf6828 (plain)
1
2
3
4
5
6
7
8
( function ( mw, $ ) {
	// Add MediaWikiSupportPlayer dependency on players with a mediaWiki title
	$( mw ).bind( 'EmbedPlayerUpdateDependencies', function ( event, embedPlayer, dependencySet ) {
		if ( $( embedPlayer ).attr( 'data-mwtitle' ) ) {
			$.merge( dependencySet, ['mw.MediaWikiPlayerSupport'] );
		}
	} );
} )( mediaWiki, jQuery );