From 170ba44c5d3e66d0d5d78fba449f29539a62eaf2 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Fri, 18 Mar 2011 22:22:04 +0000 Subject: [PATCH] Follow-up r83658 CR: Undoing addition of second argument, prefix is for identifying the source window, not the context within --- resources/mediawiki/mediawiki.log.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/resources/mediawiki/mediawiki.log.js b/resources/mediawiki/mediawiki.log.js index 595ce36f09..185028b0cd 100644 --- a/resources/mediawiki/mediawiki.log.js +++ b/resources/mediawiki/mediawiki.log.js @@ -2,7 +2,7 @@ * Implementation for mediaWiki.log stub */ -(function ($) { +(function( $ ) { /** * Log output to the console. @@ -15,11 +15,9 @@ * @author Trevor Parscal * @param {string} string Message to output to console */ - mw.log = function( string, prefix ) { - // Allow log messages to use a configured prefix - if ( typeof prefix == 'string' ) { - string = prefix + '> ' + string; - } else if ( mw.config.exists( 'mw.log.prefix' ) ) { + mw.log = function( string ) { + // Allow log messages to use a configured prefix to identify the source window (ie. frame) + if ( mw.config.exists( 'mw.log.prefix' ) ) { string = mw.config.get( 'mw.log.prefix' ) + '> ' + string; } // Try to use an existing console -- 2.20.1