From: Trevor Parscal Date: Tue, 26 Oct 2010 23:47:09 +0000 (+0000) Subject: Improved comments, whitespace and simplicity. X-Git-Tag: 1.31.0-rc.0~34282 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=cc58180ee9209824ca31ab7108a6ce0fb2d98395;p=lhc%2Fweb%2Fwiklou.git Improved comments, whitespace and simplicity. --- diff --git a/resources/mediawiki/mediawiki.log.js b/resources/mediawiki/mediawiki.log.js index 40c2d4366c..dd7c41ccc1 100644 --- a/resources/mediawiki/mediawiki.log.js +++ b/resources/mediawiki/mediawiki.log.js @@ -1,19 +1,17 @@ /* - * Debug output logging + * Implementation for mediaWiki.log stub */ -( function( $ ) { - -/* Extension */ - /** - * Log output to the console + * Log output to the console. * - * In the case that the browser does not have a console available, one is created by appending a
element to - * the bottom of the body and then appending a
element to that for each message. + * In the case that the browser does not have a console available, one is created by appending a + *
element to the bottom of the body and then appending a
element to that for each + * message. * - * @author Michael Dale , Trevor Parscal - * @param {string} string message to output to console + * @author Michael Dale + * @author Trevor Parscal + * @param {string} string Message to output to console */ mediaWiki.log = function( string ) { // Allow log messages to use a configured prefix @@ -25,9 +23,9 @@ mediaWiki.log = function( string ) { window.console.log( string ); } else { // Show a log box for console-less browsers - var $log = $( '#mw_log_console' ); + var $log = jQuery( '#mw_log_console' ); if ( !$log.length ) { - $log = $( '
' ) + $log = jQuery( '
' ) .css( { 'position': 'absolute', 'overflow': 'auto', @@ -39,10 +37,10 @@ mediaWiki.log = function( string ) { 'background-color': 'white', 'border-top': 'solid 1px #DDDDDD' } ) - .appendTo( $( 'body' ) ); + .appendTo( jQuery( 'body' ) ); } $log.append( - $( '
' ) + jQuery( '
' ) .text( string ) .css( { 'border-bottom': 'solid 1px #DDDDDD', @@ -53,5 +51,3 @@ mediaWiki.log = function( string ) { ); } }; - -} )( jQuery ); \ No newline at end of file