From 60943164cb95f7529ac03a8e46045a2d3dbb4344 Mon Sep 17 00:00:00 2001 From: Mani Mishra Date: Wed, 7 Oct 2015 10:42:10 +0530 Subject: [PATCH] Mani : #14682 : Adds the check to add timers only when both track and delay options are present --- ui/widgets/tooltip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/widgets/tooltip.js b/ui/widgets/tooltip.js index daf783a98a2..1bff57c8fc6 100644 --- a/ui/widgets/tooltip.js +++ b/ui/widgets/tooltip.js @@ -318,7 +318,8 @@ $.widget( "ui.tooltip", { // Handle tracking tooltips that are shown with a delay (#8644). As soon // as the tooltip is visible, position the tooltip using the most recent // event. - if ( this.options.show && this.options.show.delay ) { + // Adds the check to add the timers only when both delay and track options are set (#14682) + if ( this.options.track && this.options.show && this.options.show.delay ) { delayedShow = this.delayedShow = setInterval( function() { if ( tooltip.is( ":visible" ) ) { position( positionOption.of );