#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
Owner: | set to klaus.hartl |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
r1579