From 2d9a28b694a05f0a5ef63a2b9bd90898308cb73c Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Mon, 26 May 2014 11:51:59 +0530 Subject: [PATCH] Remove unwanted anonymous functions Change-Id: Ieefbd58fbc829182048df1d89921b97599a3392c --- resources/js/ext.uls.interface.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/resources/js/ext.uls.interface.js b/resources/js/ext.uls.interface.js index 4ebc846d..593e6f67 100644 --- a/resources/js/ext.uls.interface.js +++ b/resources/js/ext.uls.interface.js @@ -252,15 +252,11 @@ window.clearTimeout( tipsyTimer ); } ); $( '.tipsy' ).on( 'mouseout', function () { - tipsyTimer = window.setTimeout( function () { - hideTipsy(); - }, timeout ); + tipsyTimer = window.setTimeout( hideTipsy, timeout ); } ); // hide the tooltip when clicked on it - $( '.tipsy' ).on( 'click', function () { - hideTipsy(); - } ); + $( '.tipsy' ).on( 'click', hideTipsy ); // Event handler for links in the tooltip. // It looks like the tipsy is always created from scratch so that @@ -280,9 +276,7 @@ deferred.resolve(); }, mw.config.get( 'wgULSEventLogging' ) * 500 ); } ); - tipsyTimer = window.setTimeout( function () { - hideTipsy(); - }, timeout ); + tipsyTimer = window.setTimeout( hideTipsy, timeout ); } function hideTipsy() {