From 2a50911747f377d3eacb2f465fc6eb9987532fcb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Wed, 27 Nov 2013 14:30:19 +0100 Subject: [PATCH] jquery.makeCollapsible: Remove useless debug logging Custom togglers are nowhere near exciting enough to log the fact that we're looking for them. Added ages ago in r78989 when this script was more hairy. Change-Id: Ieec216e5f203f4d808194733d96dcb3ebe9aaf9b --- resources/jquery/jquery.makeCollapsible.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/resources/jquery/jquery.makeCollapsible.js b/resources/jquery/jquery.makeCollapsible.js index 30be2bdd6a..60c0afcd7b 100644 --- a/resources/jquery/jquery.makeCollapsible.js +++ b/resources/jquery/jquery.makeCollapsible.js @@ -15,8 +15,6 @@ * @license GPL2 */ ( function ( $, mw ) { - var lpx = 'jquery.makeCollapsible> '; - /** * Handler for a click on a collapsible toggler. * @@ -292,17 +290,11 @@ } else { collapsibleId = $collapsible.attr( 'id' ) || ''; if ( collapsibleId.indexOf( 'mw-customcollapsible-' ) === 0 ) { - mw.log( lpx + 'Found custom collapsible: #' + collapsibleId ); $customTogglers = $( '.' + collapsibleId.replace( 'mw-customcollapsible', 'mw-customtoggle' ) ); - - // Double check that there is actually a customtoggle link - if ( !$customTogglers.length ) { - mw.log( lpx + '#' + collapsibleId + ': Missing toggler!' ); - } } } - // Bind the togglers + // Add event handlers to custom togglers or create our own ones if ( $customTogglers && $customTogglers.length ) { actionHandler = function ( e, opts ) { var defaultOpts = {}; -- 2.20.1