Ticket #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: | ||
| Blocking: | Blocked by: |
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
Note: See
TracTickets for help on using
tickets.

