Ticket #3855 (closed bug: fixed)

Opened 7 years ago

Last modified 3 years ago

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:


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

comment:1 Changed 7 years ago by klaus.hartl

  • Owner set to klaus.hartl
  • Status changed from new to assigned

comment:2 Changed 7 years ago by klaus.hartl

  • Status changed from assigned to closed
  • Resolution set to fixed


comment:3 Changed 3 years ago by scott.gonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.