Permalink
Browse files

Tooltip: Use show.delay update only when track option is active

Fixes #14682
Closes gh-1613
  • Loading branch information...
mani-mishra authored and jzaefferer committed Oct 7, 2015
1 parent 4c5cd20 commit d5732327078709c3680385c79a2106f263009f84
Showing with 2 additions and 1 deletion.
  1. +2 −1 ui/widgets/tooltip.js
View
@@ -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 );

0 comments on commit d573232

Please sign in to comment.