r104110 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104109‎ | r104110 | r104111 >
Date:23:50, 23 November 2011
Author:raindrift
Status:ok
Tags:
Comment:
whitespace, comment, and brace format fixes
Modified paths:
  • /trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.MediaElement.js (modified) (history)

Diff [purge]

Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.MediaElement.js
@@ -147,8 +147,9 @@
148148 $( '#' + this.parentEmbedId ).trigger( 'SourceChange');
149149 }
150150 },
 151+
151152 /**
152 - * Sets a the selected source to passed in source object
 153+ * Sets the selected source to passed in source object
153154 * @param {Object} Source
154155 */
155156 setSource: function( source ){
@@ -158,7 +159,6 @@
159160 $( '#' + this.parentEmbedId ).trigger( 'SourceChange');
160161 }
161162 },
162 -
163163
164164 /**
165165 * Selects the default source via cookie preference, default marked, or by
@@ -328,10 +328,8 @@
329329 * mimeType MIME type to check.
330330 * @return {Boolean} true if sources include MIME false if not.
331331 */
332 - hasStreamOfMIMEType: function( mimeType )
333 - {
334 - for ( var i = 0; i < this.sources.length; i++ )
335 - {
 332+ hasStreamOfMIMEType: function( mimeType ) {
 333+ for ( var i = 0; i < this.sources.length; i++ ) {
336334 if ( this.sources[i].getMIMEType() == mimeType ){
337335 return true;
338336 }

Status & tagging log