Skip to main content

Search and Top Navigation

#8920 closed bug (fixed)

Opened December 18, 2012 01:24PM UTC

Closed December 18, 2012 01:38PM UTC

Last modified January 31, 2013 02:55PM UTC

Tooltip potential setinterval endless loop

Reported by: KopiasCsaba Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.tooltip Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hello!

I'm working on a bigger project, with hundreds of draggables, droppables, and many of them has tooltip too.

In this kind of situations, sometimes i've noticed, that an endless loop going on because of the tooltip. (Casues 100% cpu eating).

The problem is here:

	// 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 ) {
			delayedShow = setInterval(function() {
				if ( tooltip.is( ":visible" ) ) {
					position( positionOption.of );
					clearInterval( delayedShow );
				}
			}, $.fx.interval );
		}

If the tooltip is not visible, when the interval executes, then it will never clears itself.

Possible solution is to put that outside of that if, but i'm not sure of the whole inner structure of the tooltip.

Attachments (0)
Change History (2)

Changed December 18, 2012 01:38PM UTC by Scott González comment:1

resolution: → fixed
status: newclosed

Tooltip: Clear the tracking interval on close. Fixes #8920 -Tooltip potential setinterval endless loop.

Changeset: 9cbd4b42221389277cf90a6662f17c500d1a77df

Changed January 31, 2013 02:55PM UTC by KopiasCsaba comment:2

Thank you very much!