danielstocks/jQuery-Collapse — pull request #13 by nathan-rice (2011-12-23 04:00:08+00:00)
Title: Fix for nested collapsible elements with the same class

Few small things:

You weren't searching for nested tags that matched the primary selector to exclude in the sections selector.
You were binding the click event to obj (the thing that matched the primary selector), rather than the element that you added previously.

The code now works properly when calling collapse on the results of a selector that extracts nested elements.