Index: trunk/extensions/MwEmbedSupport/.project |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?xml version="1.0" encoding="UTF-8"?> |
3 | 3 | <projectDescription> |
4 | | - <name>MwEmbed</name> |
| 4 | + <name>MwEmbedSupport</name> |
5 | 5 | <comment></comment> |
6 | 6 | <projects> |
7 | 7 | </projects> |
Index: trunk/extensions/MwEmbedSupport/MwEmbedModules/MediaWikiSupport/resources/mw.MediaWikiPlayerSupport.js |
— | — | @@ -1,6 +1,4 @@ |
2 | | - |
3 | 2 | ( function( mw, $ ) { |
4 | | - |
5 | 3 | /** |
6 | 4 | * Merge in the default video attributes supported by embedPlayer: |
7 | 5 | */ |
— | — | @@ -21,17 +19,16 @@ |
22 | 20 | * Closure function wraps mediaWiki embedPlayer bindings |
23 | 21 | */ |
24 | 22 | mw.addMediaWikiPlayerSupport = function( embedPlayer ){ |
25 | | - |
26 | 23 | // Set some local variables: |
27 | | - if( ! $( embedPlayer).attr( 'data-mwtitle' ) ){ |
| 24 | + if( ! embedPlayer['data-mwtitle'] ){ |
28 | 25 | return false; |
29 | 26 | } else { |
30 | | - var apiTitleKey = $( embedPlayer).attr( 'data-mwtitle'); |
| 27 | + var apiTitleKey = embedPlayer['data-mwtitle']; |
31 | 28 | // legacy support ( set as attribute ) |
32 | 29 | embedPlayer.apiTitleKey = apiTitleKey; |
33 | 30 | } |
34 | 31 | // Set local apiProvider via config if not defined |
35 | | - var apiProvider = $( embedPlayer ).attr('data-mwprovider'); |
| 32 | + var apiProvider = embedPlayer['data-mwprovider']; |
36 | 33 | if( !apiProvider ){ |
37 | 34 | apiProvider = mw.getConfig( 'EmbedPlayer.ApiProvider' ); |
38 | 35 | } |
— | — | @@ -228,7 +225,6 @@ |
229 | 226 | callback( true ); |
230 | 227 | } ); |
231 | 228 | }; |
232 | | - |
233 | 229 | /** |
234 | 230 | * Adds embedPlayer Bindings |
235 | 231 | */ |