Skip to main content

Search and Top Navigation

#3855 closed bug (fixed)

Opened January 16, 2009 06:46AM UTC

Closed January 19, 2009 09:09PM UTC

Last modified October 11, 2012 09:15PM UTC

tabs() causes error when no UL available

Reported by: headache Owned by: klaus.hartl
Priority: major Milestone:
Component: ui.tabs Version: 1.6rc4
Keywords: Cc:
Blocked by: Blocking:
Description

If #some_el does not contain a UL the following will cause a javascript error:

$('#some_el').tabs({ ... });

-- snip --

Error: c has no properties

Source file: http://cake_elan.apollo/js/lib/jquery-1.2.6.js

Line: 662

-- snip --

The failure occurs in _tabify() on the line with:

$.data(a, 'load.tabs', a.href);

The following is necessary if #some_el may not have a UL:

if ($('#some_el ul').length) { $('#some_el').tabs({ ... }); }
Attachments (0)
Change History (3)

Changed January 16, 2009 07:23AM UTC by klaus.hartl comment:1

owner: → klaus.hartl
status: newassigned

Changed January 19, 2009 09:09PM UTC by klaus.hartl comment:2

resolution: → fixed
status: assignedclosed

r1579

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted