Improves on r69445 by removing unneeded conditional. Also fixes a comment typo.
authorTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 12 Oct 2010 18:15:53 +0000 (18:15 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Tue, 12 Oct 2010 18:15:53 +0000 (18:15 +0000)
resources/mediawiki/mediawiki.js
resources/mediawiki/mediawiki.log.js

index f56adc2..8f40fdd 100644 (file)
@@ -252,7 +252,7 @@ window.mediaWiki = new ( function( $ ) {
                        // Resolves dynamic loader function and replaces it with it's own results
                        if ( typeof registry[module].dependencies === 'function' ) {
                                registry[module].dependencies = registry[module].dependencies();
-                               // Gaurantees the module's dependencies are always in an array 
+                               // Ensures the module's dependencies are always in an array 
                                if ( typeof registry[module].dependencies !== 'object' ) {
                                        registry[module].dependencies = [registry[module].dependencies];
                                }
index 0fef8c6..52cbe48 100644 (file)
@@ -45,17 +45,16 @@ $.extend( mw, {
                                        } )
                                        .appendTo( $( 'body' ) );
                        }
-                       if ( $log.length ) {
-                               $log.append(
-                                       $( '<div>' + string + '</div>' )
-                                               .css( {
-                                                       'border-bottom': 'solid 1px #DDDDDD',
-                                                       'font-size': 'small',
-                                                       'font-family': 'monospace',
-                                                       'padding': '0.125em 0.25em'
-                                               } )
-                               );
-                       }
+                       $log.append(
+                               $( '<div></div>' )
+                                       .text( string )
+                                       .css( {
+                                               'border-bottom': 'solid 1px #DDDDDD',
+                                               'font-size': 'small',
+                                               'font-family': 'monospace',
+                                               'padding': '0.125em 0.25em'
+                                       } )
+                       );
                }
        }
 } );