Index: branches/js2-work/phase3/js2/mwEmbed/libEmbedPlayer/embedPlayer.js |
— | — | @@ -2033,7 +2033,7 @@ |
2034 | 2034 | * @param {String} src New src of thumbnail |
2035 | 2035 | * @param {Boolean} quick_switch |
2036 | 2036 | * true switch happens instantly |
2037 | | - * false / undefined annimated cross fade |
| 2037 | + * false / undefined animated cross fade |
2038 | 2038 | */ |
2039 | 2039 | updateThumbnail : function( src, quick_switch ) { |
2040 | 2040 | // make sure we don't go to the same url if we are not already updating: |
— | — | @@ -2159,7 +2159,7 @@ |
2160 | 2160 | /** |
2161 | 2161 | * Follows a linkback. Loads the ROE xml if no linkback is found |
2162 | 2162 | */ |
2163 | | - doLinkBack:function() { |
| 2163 | + doLinkBack: function() { |
2164 | 2164 | if ( ! this.linkback && this.roe && this.media_element.addedROEData == false ) { |
2165 | 2165 | var _this = this; |
2166 | 2166 | this.displayOverlay( gM( 'mwe-loading_txt' ) ); |
— | — | @@ -2807,17 +2807,17 @@ |
2808 | 2808 | /** |
2809 | 2809 | * Hides the playhead highlight |
2810 | 2810 | */ |
2811 | | - hideHighlight:function() { |
| 2811 | + hideHighlight: function() { |
2812 | 2812 | var eid = ( this.pc ) ? this.pc.pp.id:this.id; |
2813 | 2813 | $j( '#mv_seeker_' + eid + ' .mv_highlight' ).hide(); |
2814 | | - this.setStatus( this.getTimeReq() ); |
2815 | | - thigetTimeRangerValue( 0 ); |
| 2814 | + this.setStatus( this.getTimeRange() ); |
2816 | 2815 | }, |
2817 | 2816 | |
2818 | 2817 | /** |
2819 | 2818 | * Updates the player status that displays short text msgs and the play clock |
| 2819 | + * @param {String} value Status string value to update |
2820 | 2820 | */ |
2821 | | - setStatus:function( value ) { |
| 2821 | + setStatus: function( value ) { |
2822 | 2822 | var eid = ( this.pc ) ? this.pc.pp.id:this.id; |
2823 | 2823 | // update status: |
2824 | 2824 | $j( '#' + eid + ' .time-disp' ).html( value ); |
Index: branches/js2-work/phase3/js2/mwEmbed/mwEmbed.js |
— | — | @@ -544,6 +544,7 @@ |
545 | 545 | } |
546 | 546 | /** |
547 | 547 | * parse template text as template name and named params |
| 548 | + * @param {String} ts Template String to be parsed |
548 | 549 | */ |
549 | 550 | function parseTmplTxt( ts ) { |
550 | 551 | var tObj = { }; |
— | — | @@ -633,8 +634,9 @@ |
634 | 635 | |
635 | 636 | // do the recursive magic swap text: |
636 | 637 | this.pOut = recurse_magic_swap( this.pNode ); |
637 | | - }, |
638 | | - /* |
| 638 | + }, |
| 639 | + |
| 640 | + /** |
639 | 641 | * parsed template api ~loosely based off of ~POM~ |
640 | 642 | * http://www.mediawiki.org/wiki/Extension:Page_Object_Model |
641 | 643 | */ |
— | — | @@ -773,14 +775,13 @@ |
774 | 776 | * |
775 | 777 | * {Array} {Array} Can be a set of Arrays for loading. |
776 | 778 | * Some browsers execute included scripts out of order. |
777 | | - * This lets you chain sets of request for those browers. |
| 779 | + * This lets you chain sets of request for those browsers. |
778 | 780 | * If using the script-loader order is preserved in output and |
779 | 781 | * a single request will be used. |
780 | 782 | * |
781 | 783 | * @param {Function} callback Function called once loading is complete |
782 | 784 | */ |
783 | 785 | load: function( loadRequest, callback ){ |
784 | | - |
785 | 786 | // Check for empty loadRequest ( directly return the callback ) |
786 | 787 | if( $.isEmpty( loadRequest ) ){ |
787 | 788 | mw.log( 'Error: Empty load request ' ); |
Index: branches/js2-work/phase3/js2/mwEmbed/libTimedText/mvTextInterface.js |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | 'apprefix' : _this.pe.wikiTitleKey, |
75 | 75 | 'apnamespace' : timedtext_ns, |
76 | 76 | 'prop':'revisions' |
77 | | - }' |
| 77 | + }; |
78 | 78 | mw.getJSON( apiUrl, request, function( subData ) { |
79 | 79 | if ( subData.error && subData.error.code == 'apunknown_apnamespace' ) { |
80 | 80 | var request = { |
— | — | @@ -350,7 +350,7 @@ |
351 | 351 | return '<div id="mmbody_' + this.pe.id + '" ' + |
352 | 352 | 'style="position:absolute;top:30px;left:0px;' + |
353 | 353 | 'right:0px;bottom:0px;' + |
354 | | - 'height:' + ( this.pe.height - 30 ) + |
| 354 | + 'height:' + ( this.pe.height) + |
355 | 355 | 'px;overflow:auto;"><span style="display:none;" id="mv_txt_load_' + this.pe.id + '">' + |
356 | 356 | mw.loading_spiner() + '</span>' + |
357 | 357 | '</div>'; |