Bug Tracker

Ticket #3797 (closed bug: invalid)

Opened 6 years ago

Last modified 5 years ago

[tooltip] multiple applications of the init routine break the tip

Reported by: ccarey Owned by:
Priority: minor Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

The first one works $(element).tooltip(); the second one breaks because the title was blanked $(element).tooltip();

Occasionally when rendering dynamic content it is useful (or necessary) to apply the tooltip() to newly created elements with the same selection criteria.

The fix is simple enough - just check for the presence of this.tooltipTitle on the element before overwrite (see attached revision.

Attachments

jquery.tooltip.js Download (8.0 KB) - added by ccarey 6 years ago.
minor change to check for presence of this.tooltipText before overwriting it

Change History

Changed 6 years ago by ccarey

minor change to check for presence of this.tooltipText before overwriting it

comment:1 Changed 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on  http://dev.jqueryui.com .

Note: See TracTickets for help on using tickets.