Remove unwanted anonymous functions

Change-Id: Ieefbd58fbc829182048df1d89921b97599a3392c
This commit is contained in:
Santhosh Thottingal
2014-05-26 11:51:59 +05:30
parent 2794039142
commit 2d9a28b694

View File

@@ -252,15 +252,11 @@
window.clearTimeout( tipsyTimer ); window.clearTimeout( tipsyTimer );
} ); } );
$( '.tipsy' ).on( 'mouseout', function () { $( '.tipsy' ).on( 'mouseout', function () {
tipsyTimer = window.setTimeout( function () { tipsyTimer = window.setTimeout( hideTipsy, timeout );
hideTipsy();
}, timeout );
} ); } );
// hide the tooltip when clicked on it // hide the tooltip when clicked on it
$( '.tipsy' ).on( 'click', function () { $( '.tipsy' ).on( 'click', hideTipsy );
hideTipsy();
} );
// Event handler for links in the tooltip. // Event handler for links in the tooltip.
// It looks like the tipsy is always created from scratch so that // It looks like the tipsy is always created from scratch so that
@@ -280,9 +276,7 @@
deferred.resolve(); deferred.resolve();
}, mw.config.get( 'wgULSEventLogging' ) * 500 ); }, mw.config.get( 'wgULSEventLogging' ) * 500 );
} ); } );
tipsyTimer = window.setTimeout( function () { tipsyTimer = window.setTimeout( hideTipsy, timeout );
hideTipsy();
}, timeout );
} }
function hideTipsy() { function hideTipsy() {