Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#3855 closed bug (fixed)

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({ ... }); }

Change History (3)

comment:1 Changed 14 years ago by klaus.hartl

Owner: set to klaus.hartl
Status: newassigned

comment:2 Changed 14 years ago by klaus.hartl

Resolution: fixed
Status: assignedclosed

comment:3 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.