Merge "Regression: correctly log the click action total interaction time"

This commit is contained in:
jenkins-bot 2016-10-04 10:23:46 +00:00 committed by Gerrit Code Review
commit 46274a5518
2 changed files with 4 additions and 7 deletions

View file

@ -147,8 +147,10 @@
linkInteractionToken: linkInteractionToken
};
$link.on( 'mouseleave blur', mw.popups.render.leaveInactive )
.off( 'click', logClickAction ).on( 'click', logClickAction );
$link
.on( 'mouseleave blur', mw.popups.render.leaveInactive )
.off( 'click', mw.popups.render.clickHandler )
.on( 'click', mw.popups.render.clickHandler );
if ( mw.popups.render.cache[ $link.attr( 'href' ) ] ) {
openTimer = mw.popups.render.wait( mw.popups.render.POPUP_DELAY )

View file

@ -138,11 +138,6 @@
mw.popups.$content = $content;
$elements = mw.popups.selectPopupElements();
// On clicking a link the open popup (if any) should be hidden. (T143051)
$elements.on( 'click', function () {
mw.popups.render.closePopup();
} );
$elements.on( 'mouseenter focus', function ( event ) {
var $link = $( this );