Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/135398
Change subject: Remove unwanted anonymous functions ...................................................................... Remove unwanted anonymous functions Change-Id: Ieefbd58fbc829182048df1d89921b97599a3392c --- M resources/js/ext.uls.interface.js 1 file changed, 3 insertions(+), 9 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UniversalLanguageSelector refs/changes/98/135398/1 diff --git a/resources/js/ext.uls.interface.js b/resources/js/ext.uls.interface.js index 4ebc846..593e6f6 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() { -- To view, visit https://gerrit.wikimedia.org/r/135398 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ieefbd58fbc829182048df1d89921b97599a3392c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UniversalLanguageSelector Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits