From db8f2328c2c5528acb30d591ab320bb734b01c6a Mon Sep 17 00:00:00 2001 From: Krinkle Date: Fri, 18 Mar 2011 22:16:12 +0000 Subject: [PATCH] per r83658 CR: mw.log.prefix is for identifying windows, not context. Using string concat instead --- resources/jquery/jquery.makeCollapsible.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/jquery/jquery.makeCollapsible.js b/resources/jquery/jquery.makeCollapsible.js index 1a144e60f7..26621ce269 100644 --- a/resources/jquery/jquery.makeCollapsible.js +++ b/resources/jquery/jquery.makeCollapsible.js @@ -19,7 +19,7 @@ $.fn.makeCollapsible = function() { return this.each(function() { - mw.config.set( 'mw.log.prefix', 'jquery.makeCollapsible' ); + var _fn = 'jquery.makeCollapsible> '; // Define reused variables and functions var $that = $(this).addClass( 'mw-collapsible' ), // case: $( '#myAJAXelement' ).makeCollapsible() @@ -228,7 +228,7 @@ $.fn.makeCollapsible = function() { var thatId = $that.attr( 'id' ), $customTogglers = $( '.' + thatId.replace( 'mw-customcollapsible', 'mw-customtoggle' ) ); - mw.log( 'Found custom collapsible: #' + thatId ); + mw.log( _fn + 'Found custom collapsible: #' + thatId ); // Double check that there is actually a customtoggle link if ( $customTogglers.size() ) { @@ -236,7 +236,7 @@ $.fn.makeCollapsible = function() { toggleLinkCustom( $(this), e, $that ); } ); } else { - mw.log( '#' + thatId + ': Missing toggler!' ); + mw.log( _fn + '#' + thatId + ': Missing toggler!' ); } // Initial state -- 2.20.1