Skip to main content

Search and Top Navigation

#8626 closed bug (fixed)

Opened October 05, 2012 10:17AM UTC

Closed October 05, 2012 03:27PM UTC

Last modified October 05, 2012 03:27PM UTC

Programatically opening a tooltip with out giving an event results in a javascript error.

Reported by: mdownes Owned by:
Priority: minor Milestone: git
Component: ui.tooltip Version: 1.9.0-rc.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

I am receiving a javascript error when i try to programatically open a tooltip using the open() method.

I am not passing an event as a parameter as i have none.

The documentation states ......"event object is only necessary for delegated tooltips so the widget knows which element to show the tooltip for"

The problem is the following line where there is no check to see if the event exists:

if ( this.options.track && /^mouse/.test( event.originalEvent.type ) ) {

Please review the following test case:

http://jsfiddle.net/Dh9ZW/

Kind Regards,

Maurice

Attachments (0)
Change History (2)

Changed October 05, 2012 03:27PM UTC by Scott González comment:1

resolution: → fixed
status: newclosed

Tooltip: Check if event exists before checking properties in open(). Fixes #8626 - Programatically opening a tooltip with out giving an event results in a javascript error.

Changeset: 96f2aa4c72b5f29782b0736ed95468e50d338d6e

Changed October 05, 2012 03:27PM UTC by scottgonzalez comment:2

milestone: 1.9.0git