Skip to main content

Search and Top Navigation

#6864 closed bug (worksforme)

Opened January 15, 2011 11:44AM UTC

Closed January 15, 2011 11:56AM UTC

Accordion : activate method doesn't take into account the current state (active or hidden) of the content part

Reported by: jordanp Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.accordion Version: 1.8.8
Keywords: Cc:
Blocked by: Blocking:
Description

The activate method doesn't take into account the current state (active or hidden) of the content part.

Example :

$(document).ready(function () {  
  $("#accordion1").accordion({
    collapsible: true,
    active: 0  });
  $("#accordion1").accordion("activate", 0);
  });

Should result in content part #0 being active. It's not the case.

Attachments (0)
Change History (1)

Changed January 15, 2011 11:56AM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

The method name and behavior may be confusing, but the behavior isn't wrong. It's not obvious whether activate is a shortcut to the active option or whether it is meant to mimic the user manually activating the panel. The actual behavior is to mimic the user activating a panel. Changing this behavior would be a backward incompatible change and this method is being deprecated in 1.9. Therefore, no change will be made.